/*JavaScript Application CookbookBy Jerry BradenbaughPublisher: O'Reilly Series: CookbooksISBN: 1-56592-577-7*/
// frames.js function keepIn(parentHREF) { if (top.location.href == self.location.href) { alert('[Wheez]. . . [Gasp]. . . Must. . . load. . . original. . . frameset.'); top.location.href = parentHREF; } } function keepOut() { if (top.location.href != self.location.href) { alert('This document bows to no frameset.'); top.location.href = self.location.href; } } <HTML> <HEAD> <TITLE>Need Frameset</TITLE> <SCRIPT LANGUAGE="JavaScript1.1" SRC="frames.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript1.1"> <!-- keepIn('frameset2.html'); //--> </SCRIPT> </HEAD> <BODY> There.... that is much better. </BODY> </HTML>
Name (required)
email (will not be published) (required)
Website