Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-12-2012, 10:41 AM   PM User | #1
Dayne
New to the CF scene

 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Dayne is an unknown quantity at this point
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!
Dayne is offline   Reply With Quote
Old 01-12-2012, 08:54 PM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,447
Thanks: 0
Thanked 496 Times in 488 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
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.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Reply

Bookmarks

Tags
code, link, start, url

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:39 AM.


Advertisement
Log in to turn off these ads.