Click to See Complete Forum and Search --> : changing protocol to https:


digiti0
09-16-2003, 06:29 AM
the code
top.location.protocol="https:"
seems to have no effect.
what is the proper way to redirect to a secure server, and then redirect back on unload of the page?
Thanks a lot

Khalid Ali
09-16-2003, 09:36 AM
I don't think you can make such changes to the URL in the current window,however you can make changes to the currrent URL in the code,to make it take effect int he current windows address bar you will need to reload page using the new URL.
Which means once you have made changes to the URL
then reload the page

window.location.href=newURL;

digiti0
09-16-2003, 10:29 AM
thank you Khalid

Khalid Ali
09-16-2003, 10:34 AM
you are welcome
:D