Computing.Net > Forums > Web Development > Javascript: return true/false

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Javascript: return true/false

Reply to Message Icon

Name: mie2com
Date: November 27, 2006 at 17:52:09 Pacific
OS: WinXP
CPU/Ram: Pentium III
Product: Sony
Comment:

what does this event use for? is it just for link?



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: November 27, 2006 at 22:06:32 Pacific
Reply:

No, it can be used for anything where you want a true/false response. For example if you have a FORM on your page you could create an onsubmit trigger to call a function to validate the informating the user entered into the form. If the validation passes you can return true and submit the form. If the validation fails you can return false and have the form not be submitted.

But, there are many, many more uses.

Michael J


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Javascript: return true/false

PHP code problem, foreach loop www.computing.net/answers/webdevel/php-code-problem-foreach-loop/3431.html

Need a Javascript Coders Help www.computing.net/answers/webdevel/need-a-javascript-coders-help/1020.html

Guestbook security. www.computing.net/answers/webdevel/guestbook-security/2447.html