K
ksuralta
Hi everyone,
Hope somebody can help me with this.
I have a framed window.
--------------------------------
Frame 1
--------------------------------
|
2 | Frame 3
|
|
--------------------------------
There is a link in Frame 3 that I would like to do two things.
1) redirect the main URL to HTTPS..
2) redirect Frame 3 to a new HTTPS page.
Here's my code:
function redirect_to_https()
{
hostname = window.location.hostname;
window.location.href = "https://" + hostname;
top.<frame 3 name>.location = "https://" + hostname + "<new
page>";
}
Problem here is it reloads the entire frame with the default page in
Frame 3, and not the <new page>.
Is there a way to do this without using a pop-up window (due to pop-up
blockers) that will redirect the frames properly?
Thanks,
Kenneth
Hope somebody can help me with this.
I have a framed window.
--------------------------------
Frame 1
--------------------------------
|
2 | Frame 3
|
|
--------------------------------
There is a link in Frame 3 that I would like to do two things.
1) redirect the main URL to HTTPS..
2) redirect Frame 3 to a new HTTPS page.
Here's my code:
function redirect_to_https()
{
hostname = window.location.hostname;
window.location.href = "https://" + hostname;
top.<frame 3 name>.location = "https://" + hostname + "<new
page>";
}
Problem here is it reloads the entire frame with the default page in
Frame 3, and not the <new page>.
Is there a way to do this without using a pop-up window (due to pop-up
blockers) that will redirect the frames properly?
Thanks,
Kenneth