Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-06-2007, 04:15 AM   PM User | #1
BubikolRamios
Senior Coder

 
Join Date: Dec 2005
Location: Slovenia
Posts: 1,876
Thanks: 114
Thanked 76 Times in 76 Posts
BubikolRamios is on a distinguished road
Embeding another page inside my page

There is the test:
http://86.61.66.17:8084/AgroZoo/testHTML/testHTML.jsp

embed link works as planned, even back button on browser is ok

embed link1 does not work as planned

what is the difference ?
BubikolRamios is offline   Reply With Quote
Old 01-06-2007, 05:13 AM   PM User | #2
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
The difference is

Code:
if(window.top != window) {
window.top.location.href = window.location.href;
}
Apparently whoever runs that site doesn't want their webpage in a frame, so they force their site to take over.

david_kw
david_kw is offline   Reply With Quote
Old 01-06-2007, 05:29 AM   PM User | #3
BubikolRamios
Senior Coder

 
Join Date: Dec 2005
Location: Slovenia
Posts: 1,876
Thanks: 114
Thanked 76 Times in 76 Posts
BubikolRamios is on a distinguished road
Thanks.
BubikolRamios is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:09 AM.


Advertisement
Log in to turn off these ads.