Andrew,
This question has been asked before, but to recap, just add the following
line to the pages that you want to get redirected to the page that sets up
the frame:
<script LANGUAGE="javascript">
<!--
if(window.parent == window) location.href = 'frames.html';
// -->
</script>
You could even pass current page to frames.html and use that to display the
right page in the frame.
Julian Dobson
Systems Developer
Wrox Press Inc
http://www.wrox.com
Tel: (203) 781 2300
Fax: (203) 781 2301
Pager: (888) 782 8667
Mobile: (203) 675 5052
-----Original Message-----
From: Andrew Scott [mailto:Andrew@c...]
Sent: Thursday, March 29, 2001 11:16 AM
To: javascript
Subject: [javascript] Frames pages and Favorites
Hi all
I have a few web sites with Frames pages and the users don't seam to be
entering the site via the first page, whichis where I increment my counter
and I end up with my counter increasing by 400 a mounth instead of 2000 (I
know what the correct number is because my web server stats show counter
info and where the entry point is too), and so there must be a certain
users that recieve I page that is only used as a frame of the web site...
PLEASE how do all u that use frames in your sites get it to redirect it
the home page instead of the book marked one?
Obiously I need to add a check to the page but what do I check for and
when and with it not reload everytime? also I am reluctant to add
variables to the links of the pages as the sites are becomeing VERY large
with upto 1000 links!!!! so i would prefer to only have to add code t the
op of each page...
PLEASE HELP!!!!
Andy Scott