Is it possible?
Or maybe it's possible to check (after the page has loaded) if it was opened in a new window - and then to do something like redirecting to a page, or to close the window using a javascript function.
Can I check this thing when a user loads a webpage?
Disabling "opening in a new windows" - Possible?
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
you can make it challenging, but impossible? not really. If they can find out the URL, which has to be possible, then they can open it in a new window. Whether the page lets them is another story, but unfortunately, that depends on Javascript.
check the cleint side board for various things, like the checking if in a frame code (page 2 right now, I think) and such...
At any rate, this is being moved to Client Side.
check the cleint side board for various things, like the checking if in a frame code (page 2 right now, I think) and such...
At any rate, this is being moved to Client Side.
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
Code: Select all
<script language='Javascript'>
if(opener.location && opener.location!=self.location){
opener.location=self.location;
self.close();
}
</script>