Sinisterly
[javascript]Unclosable Site - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Java, JVM, & JRE (https://sinister.ly/Forum-Java-JVM-JRE)
+--- Thread: [javascript]Unclosable Site (/Thread-javascript-Unclosable-Site)



[javascript]Unclosable Site - 1llusion - 05-23-2011

Hey!

So, I have this small java-script :
Code:
<script type="text/javascript">
window.onbeforeunload = function(){
    return false
}

Well, it does its job, but I would like to improve it a bit, so the browser would show loop of messageboxes popping out. Like on RickRoll things Smile

Can you help me a bit? Tell me the direction to go or so...

Thanks!!!


RE: [javascript]Unclosable Site - 1234hotmaster - 05-23-2011

try

Windows.location = windows.location

the page will refresh Tongue


RE: [javascript]Unclosable Site - 1llusion - 05-23-2011

(05-23-2011, 05:18 PM)1234hotmaster Wrote: try

Windows.location = windows.location

the page will refresh Tongue

nope :/ sorry ... doesn't work :/


RE: [javascript]Unclosable Site - FrostByte_mybb_import5923 - 05-25-2011

the problem with these loops is in chrome (i use) i give the option to block message boxes so it doesn't work, dunno about other browsers.