Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q558 How can I avoid people bookmarking pages and returning later without logging onto my site?

You are here: irt.org | FAQ | JavaScript | Bookmark | Q558 [ previous next ]

Use frames!

In the page that you don't want bookmarked use:

<html>
<head>
<script language="JavaScript"><!--
if (parent.location.href == self.location.href)
     window.location.href = 'index.htm';
//--></script>
</head>

<body>
...

And then in index.htm (i.e. your default logon screen):

<html>
<frameset cols="100%,*">
<frame src="logon.htm" name="main">
<frame src="blank.htm">
</frameset>
</html>

Feedback on 'Q558 How can I avoid people bookmarking pages and returning later without logging onto my site?'

©2018 Martin Webb