11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

if ( (loadFrames.arguments.length != 2) || (theFrames.length !=<br />

theURLs.length) )<br />

}<br />

return<br />

for (var i=0;i<br />

<br />

Three Sites<br />

Frame Busting<br />

While frames can be very useful, particularly for state management in <strong>JavaScript</strong>, they also can<br />

cause Web designers significant problems. For example, some sites will put frames around all<br />

outbound links, taking away valuable screen real estate. Often site designers will employ a<br />

technique called ―frame busting‖ to destroy any enclosing frameset their page may be enclosed<br />

within. This is very easy using the following script that sets the topmost frame‘s current location<br />

to the value of the page that should not be framed.<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!