Closed Thread Icon

Preserved Topic: Killing window.open Pages that link to <a href="https://ozoneasylum.com/backlink?for=18017" title="Pages that link to Preserved Topic: Killing window.open" rel="nofollow" >Preserved Topic: Killing window.open\

 
Author Thread
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