View Full Version : Frame Enforcing & Date Of Last Visit


MikeysTown
07-24-2003, 07:10 PM
Two Questions:

1) When Using The Frame Enforcing Javascript:

<head>
<script language="JavaScript">
if (parent.location.href == self.location.href){
window.location.href = 'INDEX.HTML'
}
</script>
</head>

Which Address Do I Put For "INDEX.HTML"? For Example:

The Javascipt Is On The Page "MAINPAGE.HTML", My Frame is "FRAME.HTML", And The Page With Both Of Them Together Is "HOMEPAGE.HTML". So, If The Javascipt Is On "MAINPAGE.HTML" What Address Do I Put For "INDEX.HTML? "FRAME.HTML" Or "HOMEPAGE.HTML"?


--- --- --- --- --- --- --- --- --- ---

2) What Is The Code For Using Cookies To Tell The Visitor The Date Of Their Last Visit To That Page? Just Like On Lissa's Forum Front!

Alcy
07-24-2003, 07:14 PM
You replace INDEX.HTML with whatever page you want the user to be redirected to when they load a page outside of the frameset... I'm guessing it would be HOMEPAGE.HTML

MikeysTown
07-24-2003, 07:30 PM
Originally posted by Alcy
You replace INDEX.HTML with whatever page you want the user to be redirected to when they load a page outside of the frameset... I'm guessing it would be HOMEPAGE.HTML

Thanx!!! :-D

MikeysTown
07-25-2003, 07:58 PM
What About The JavaScript For "Last Visited"?