0

hi,
if some site uses this code

<script language="JavaScript">
var url = "http://www.aaaa.com";
var wh = 'width=250,height=250';
var time = 10;
//////////
var winopop;
window.onload = function(){
winopop = window.open(url,'news',wh);
winopop.focus();
window.setTimeout(function(){winopop.close()},time*1000);
}
</script>

they can open the site http://www.aaaa.com in a window for 10 sec and then auto close that window.
is there way to stop the window from closeing by adding a code inside the pages of www.aaaa.com

3
Contributors
3
Replies
4
Views
12 Years
Discussion Span
Last Post by jwenting
0

Wouldn't that be annoying?


And remember, Java IS NOT Javascript. Javascript IS NOT Java.

i need to do this because i am provideing a service to others sites
but with this code they can use my service for few sec and then leave my page
i want a way to disable the function(){winopop.close()},

0

Did you even listen?
This is NOT a forum about Javascript. Go ask your questions where they belong, you might get an answer there but I doubt you're going to like it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.