Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
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"
====================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html ><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Stop Redirect</title><style>body,html,head,div { margin:0;padding:0;border: 0;background-color:blue;}</style></head><body><IFRAME style="border:0; margin:0; margin-top:-170px;margin-left:-10px;left:0px;top:0px;padding:0 ; position:absolute;z-index:10000000000000000000000000000000"; name='myiframe' noresize id='myiframe' SCROLLING="NO" border=0 frameborder=0 width=840 height=470" src='http://www.tv.com/index.aspx?lang=big5' ></IFRAME><div><IFRAME style="border:0; margin:0; margin-top:-412px;margin-left:-10px;left:840px;z-Index:0;top:0px;padding:0 ; position:absolute" name='myiframe2' noresize id='myiframe2' SCROLLING="NO" border=0 frameborder=0 width=640 height=712" src='http://www.tutorial.com' ></IFRAME></div><div><IFRAME style="border:0; margin:0; margin-top:-760px;margin-left:-5px;left:0px;z-Index:0;top:670px;padding:0 ; position:absolute;z-index:10;" name='myiframe3' noresize id='myiframe3' SCROLLING="NO" border=0 frameborder=0 width=640 height=712" src='http://www.example.com' ></IFRAME></div></body></html> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25:26:27:
Accepted Solution
Expert: COBOLdinosaur replied at 2024-03-09 09:01:20
500 points AVERAGE
You are just trying to hack around security. If I was the owner of the site that is using the frame breaker, the moment you manage to hack your way to getting what you want, I would change the page to detect you server side and re-direct you to a site that crashes the browser.
If you want the page then get permission from the owner of the page, because at this point you are crossing the line to intentional copyright violation; and giving you further help, is probably a violation of the EE terms of service.
Cd&
If you want the page then get permission from the owner of the page, because at this point you are crossing the line to intentional copyright violation; and giving you further help, is probably a violation of the EE terms of service.
Cd&
Author: duncanb7 replied at 2024-03-09 02:08:30
I want all three frames are able to do javascript coding at the same time.
If allow the thrid frame for javascript, it will redirect tis link to parent.window.location
How to solve it, sandbox is not a good solution to solve it or not able to solve.
Could we write some code or add some event listener on Firefox to solve it?
If allow the thrid frame for javascript, it will redirect tis link to parent.window.location
How to solve it, sandbox is not a good solution to solve it or not able to solve.
Could we write some code or add some event listener on Firefox to solve it?
Expert: hankknight replied at 2024-03-08 07:00:43
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html ><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Stop Redirect</title></head><body><div><iframe src="http://www.tv.com/index.aspx?lang=big5"></iframe></div><div><iframe sandbox="allow-scripts" style="border: 2px solid red" src="http://www.tutorial.com"></iframe></div><div><iframe src="http://www.example.com"></iframe></div></body></html> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:
Technically, using the sandbox attribute is the only way to do what you are asking. If that is too limiting then you are out of luck. As COBOLdinosaur pointed out, you there are copyright considerations.
Expert: COBOLdinosaur replied at 2024-03-07 08:56:53
The owner of the site is using a frame breaker because they do not want their pages framed. They own that page and you are violating their property rights. You will not get it to work right because of the frame breaker.
If you want to frame the content then speak to the owner of the site to see if they are willing to co-operate. If they are not then they have a right to do whatever nasty thing they choose to screw up sites that try to frame them.
Cd&
If you want to frame the content then speak to the owner of the site to see if they are willing to co-operate. If they are not then they have a right to do whatever nasty thing they choose to screw up sites that try to frame them.
Cd&
Author: duncanb7 replied at 2024-03-07 06:50:10
if using sandbox="", it will disable all javscript code running in all iframe so there is nothing I can see and no much conetns that might
not be good solution.
not be good solution.
Author: duncanb7 replied at 2024-03-07 06:42:46
After I try the sandbox="",it is better but it is not contents in all three iframes, Why ?
Should I put all <div> tag in all iframe ?
Should I put all <div> tag in all iframe ?
Expert: hankknight replied at 2024-03-07 06:21:05
Put this in your iframe tag:
sandbox=""
Like this:
sandbox=""
Like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html ><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Stop Redirect</title></head><body><div><iframe sandbox="" src="http://www.tv.com/index.aspx?lang=big5"></iframe></div><div><iframe sandbox="" style="border: 2px solid red" src="http://www.tutorial.com"></iframe></div><div><iframe sandbox="" src="http://www.example.com"></iframe></div></body></html> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23: