redirecting code?

Hmm.. I'm pretty sure there is a way to do this as I've seen plenty of pages redirect when another site wraps a frame around the page.

So I would try putting in a OnLoad function call for the body some java script that does something like 'if parent.window.frames[0].document.location.href != SomeUrl {window.location="http://someplace.com";}'

There might be an error if the parent window doesn't have frames, so you may have to check that instead. Now if you don't know javascript very well, your html editor might have some built in function that you can drop in your page. Otherwise, I'm sure Google can help out more at this point.


Good luck...
 
Load in Frames
http://javascript.internet.com/page-details/load-in-frames-frameset.html
When other sites link directly to a page of your frames site that should be viewed inside your frames, you can foil them with this script. It will reload that page inside your frames!
Break Frames
http://javascript.internet.com/page-details/break-frames.html
If a visitor comes to your site and is looking through frames, this script will automatically make the page 'break out' of frames. As an added bonus, it's only 8 lines of script!
 
Back
Top