Welcome to WebmasterWorld Guest from 220.127.116.11 , register , login , search , subscribe , help , library , PubCon , announcements , recent posts , open posts Accredited PayPal World Seller
help using js to keep frameset plofm msg:1474092 1:03 pm on Mar 20, 2003 (gmt 0) Hi all,
Please help, I want users of the site I am working on to stay within the frames that have been set out.
I use js to detect whether the current html document is within a frame. If not they are redirected to the page containing the frameset which will then display the page but within a frame.
I have tried using 'document.referrer' and 'history.previous' to get the source for the new frame but without any success.
I think that document.referrer only returns a value when a href link has been used. is this true? Also, history.previous returns 'undefined' even though the previous page is in the browsers history.
Thankyou all in advance, Pip.
tedster msg:1474093 5:17 pm on Mar 20, 2003 (gmt 0)
Welcome to WebmasterWorld, plofm
There's a full strategy in our
Rather than using the history object, it uses a query string to pass on the URL of the original page. It also uses a second, "utilty" version, of the frameset, one that's been scripted to accept that query string and put the page into it's appropriate spot.
The only thing you'll need to customize is the exact dimenions and number of frames in yourn particular frameset.
plofm msg:1474094 11:43 am on Mar 21, 2003 (gmt 0)
I'll get right on it.