Closed Thread Icon

Preserved Topic: Killing window.open (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18017" title="Pages that link to Preserved Topic: Killing window.open (Page 1 of 1)" rel="nofollow" >Preserved Topic: Killing window.open <span class="small">(Page 1 of 1)</span>\

 
Aquilo
Bipolar (III) Inmate

From: las vegas, nevada, us
Insane since: Nov 2000

posted posted 05-23-2001 15:04

Is there a way to make it so that a page can't open a new JavaScript window?

like turning off the right mouse button!
ONCONTEXTMENU="return false;"

ONWINDOWOPEN="return false;"

or script!?!?!

Thanks Aquilo



[This message has been edited by Aquilo (edited 05-23-2001).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-23-2001 15:27

window.open = dontOpen;
function dontOpen () {return true;}

See, just overwrite the old function with your own.

« BackwardsOnwards »

Show Forum Drop Down Menu