Guest_imported
New member
- Jan 1, 1970
- 0
Hi, I get a "function does not always return a value" error when calling a function using Communicator 4.04.(I don't get it with IE or Navigator.) Here is a snippet of the function code:<br>function htmlGen() {<br>var ret;<br>ret = "<SOME HTML>";<br>return ret;<br>}<br>When I run this on Communicator 4.04, a JavaScript alert box pops up, displays the last line in the function and highlights the semicolon:<br>return ret<font color=red>;</font><br>^<br>----------¦<br>and says "function does not always return a value."<br>Is my semicolon confusing the JavaScript interpreter?<br>Aren't all JavaScript lines supposed to end in a semicolon? I've seen some that do, some that don't - what's the rules?<br><br>Pleez help, I'm trying to make my pages work on a variety of browsers...<br><br>Also, is there a good book or source that explains the different nuances of the various browsers and is there a set of JavaScript commands/rules that is "browser-safe"...<br><br>Thanks, Mikey at the CoffeyShop