
Danni
Deleted
Mar 22, 2001, 12:05 PM
Post #2 of 2
(285 views)
|
First off, your talking about javascript and not perl. Maby you should try checking a java site such as javascripts.com. Second, it is impossible to get the URL from .location if the page in .location is not from the same server, unless the user has disabled or messed with his security settings. This is because you could design a javascript to "SPY" on the user and see which pages they visits throughout a whole browser session. However you can compare or modify the .location value. Example A simple frame break script. if(top.location != location){top.location.href = location.href;} if the top.location exists and is not the same as location.href then set top.location to location.href
|