CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   Start Javascript from a link? (http://www.codingforums.com/showthread.php?t=248623)

Dayne 01-12-2012 10:41 AM

Start Javascript from a link?
 
I've just started to learn Javascript at college, and I made a little code that traps people in a dialogue box loop.

var escape = 0
for(escape === 0; escape <= 1;)
confirm("Going somewhere?")


I want to know if there is a site, or a possibility I can start this code, simple by sending friends a URL they can click on. For completely innocent purposes, of course.

Thanks!

felgall 01-12-2012 08:54 PM

The confirm dialog is intended for debugging purposes only. In Opera it always displays a checkbox for turning off JavaScript for the current page and in Internet Explorer it displays a checkbox from the second time a dialog is displayed by the page allowing you to bypass all further dialog boxes.

If you want to display a dialog that is not for debugging purposes then you should create your own using a lightbox script.


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.