There's a ton of recursive functions floating around out there. Here's a dumb example that you can: var x = 0 function addIt() { x++ alert('x is now ' + x) if (x < 10) addIt() } ---------- From: NIGEL J FORD[SMTP:N.Ford@sheffield.ac.uk] Sent: Wednesday, February 21, 1996 6:06 AM To: javascript@obscure.org Subject: Recursion Apparently you cannot nest a function statement in another statement or in itself. I guess this looks pretty gloomy for anyone wanting recursion - or am I missing something... any way around this? Nigel Ford Senior Lecturer Department of Information Studies University of Sheffield Tel: 0114 282 5087 (direct); 5080 (Dept.Office) Fax: 0114 278 0300 http://www.shef.ac.uk/uni/academic/I-M/is/home.html -------------------------------------------------------------------- This message came from the mailing list javascript. For help using the mailing list software, please send a message to 'majordomo@obscure.org' with the message body 'help'. To unsubscribe, send a message to 'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
<<application/ms-tnef>>