How can I prevent pages being viewed outside frames ?
A:
If a page is viewed separately, not in a page frame, one gets redirected to the index.html page (can be changed, see code) using the following code (JavaScript) in the HEAD section: <SCRIPT LANGUAGE="JavaScript"> if (parent.location.href == self.location.href) { window.location.href = 'index.html'; } </SCRIPT>
Other questions in this category (HTML / Webdesign)
: