WebBuilder101 - Making the web happen!
Need Web Dev software? Here is the place to
Flash Point
Breaking away from Frames

By Eddy R.
8-1-00

Linking to other web sites is part of what makes the Web what it is today, however linking to other web sites and making it look like it's one's work is a very different thing. Most Web builders do not appreciate seen their work being displayed as someone else's - that is inside a frameset. What's the solution to this nuisance?; a few lines of JavaScript.

The following script will make your site load into the top window rather than into a frame. Make sure you place this script in the <HEAD> of your document.

<SCRIPT language="JavaScript">
<!--
if (parent.frames.length > 0) {
parent.location.href = location.href;
}
// -->
</SCRIPT>

That's it! This short script will help to ensure that your site is never loaded inside someone else's frameset.

.

 

More Resources
Opening windows with JavaScript
Scrolling Text
Taking and pasting input to your web page
Customize Messages
Create Rollovers
Change Background colors
Put the current date on your site
Browser Detection

Suggested Reading

Beginning Active Server Pages 3.0
JavaScript Bible
Red Hat Linux
Dreamweaver 3.0
HTML Bible



Download WB101 Wallpaper
• Web Builder 101 Wallpaper Get it!.
• Find out how to create your own Wallpaper Teach me!.
Sign up for our Newsletters
• Web Building Sign me Up!.
• Net Alert! Sign me Up!.
Need Help?
• Contact Support Click here.
• E-mail the Webmaster Click Here.
• Search Tips Click Here.

Webbuilder101.com © 1998 - 2003 Copyright and Terms of Use
Send mail to: webmaster@webbuilder101.com

» About » Support

» FAQ » What's New » MyLog

Web Builder 101 Web Builder 101 - Making the Web Happen Web Builder 101 - Making the Web Happen
.