| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|stopping a function|
| 6:54 am on Nov 19, 2011 (gmt 0)|
I have a switch function with four cases each doing several css changes in sequence.
If the user wants to abort, and try another menu item, how to stop the function running?
I'll be looking around, but pointers would be useful. Anyone ?
| 2:19 pm on Nov 20, 2011 (gmt 0)|
Normally, the term return exits a process. You could use this in conjunction with an if...then statement or a for...next loop. i.e. if the state fails the if...then test, return.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved