Asked by duncanb7
at 2024-03-07 05:28:32
Point:500 Replies:7 POST_ID:828571USER_ID:11059
Topic:
JavaScript;Hypertext Markup Language (HTML);Web Browsers
I have one html page, "myiframepage.html" in which there are three iframe inside that will help me to
easy to view those three external websites in the same page or same instance on Firefox.
for example, the following html code and that is nothing special.
But why I try to run the "myiframepage.html" today, the third external site is redirected to the parent window.location, so other two are missing.
In other words, in the window location bar of my instance on FF is change from
http://www.mysite.com/myiframepage.html to http://www.example.com.
I thought the owner of third exteranl website set the parent.window.location is equal
to its site, www.example.com in its javascript code today . But I don't any access right to its code. So...
How can I prevent the third iframe not redirect its contents to the top window location to
replace the location of "myiframpage.html" ?
Be reminded, those three iframe site is not mine and I don't have any access right
But Why they have right to change my top or paraent window location ?
Please advise
Duncan
"myiframepage.html"
====================
easy to view those three external websites in the same page or same instance on Firefox.
for example, the following html code and that is nothing special.
But why I try to run the "myiframepage.html" today, the third external site is redirected to the parent window.location, so other two are missing.
In other words, in the window location bar of my instance on FF is change from
http://www.mysite.com/myiframepage.html to http://www.example.com.
I thought the owner of third exteranl website set the parent.window.location is equal
to its site, www.example.com in its javascript code today . But I don't any access right to its code. So...
How can I prevent the third iframe not redirect its contents to the top window location to
replace the location of "myiframpage.html" ?
Be reminded, those three iframe site is not mine and I don't have any access right
But Why they have right to change my top or paraent window location ?
Please advise
Duncan
"myiframepage.html"
====================