|
-
May 20th, 2002, 12:52 PM
#1
Thread Starter
Hyperactive Member
exit function
How can I exit function in JavaScript. I use (Exit function) in VBScript but what can I use in JavaScript to exit from function
-
May 20th, 2002, 12:54 PM
#2
-
May 20th, 2002, 01:33 PM
#3
Black Cat
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 21st, 2002, 02:58 AM
#4
Fanatic Member
what you were returned something from a function though? Wouldn't break; be better for that?
-
May 21st, 2002, 10:32 AM
#5
Black Cat
break exits a loop - return exits a function. IE throws an error if you use break to exit a function...
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 21st, 2002, 11:01 AM
#6
Fanatic Member
-
May 24th, 2002, 12:15 AM
#7
Originally posted by JoshT
break exits a loop - return exits a function. IE throws an error if you use break to exit a function...
True. break is for loops and if statments
-
May 24th, 2002, 08:21 AM
#8
Frenzied Member
And even then, there are better ways to exit the control structure without using "break". And if you think break is a good idea, just ask AT&T about January 15.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|