Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
limits, and do more testing than you would otherwise need to do.<br />
JavaScript is also, unfortunately, a pain to test and debug, as most browsers<br />
don't give you any sort of reason why your code didn't run – if it's wrong,<br />
they just ignore it.<br />
VBScript: JavaScript Made Easy.<br />
VBScript is a web language for inserting into HTML documents. It's a lot like<br />
Java, but is easier to write thanks to its Visual Basic-like code.<br />
Is It Really Easier?<br />
Well, it's largely a matter of personal preference, and what you're used to. If<br />
you're an experienced programmer, you'll probably think that VBScript is a<br />
joke, and prefer JavaScript. If you're not, though, VBScript's English-like code<br />
can make things clearer and quicker when you're writing scripts. For<br />
example, compare this code for an if/then/else condition.<br />
JavaScript:<br />
if (a == 1) {<br />
alert("a");<br />
} else if (b == 1) {<br />
alert("b");<br />
} else {<br />
alert("z");<br />
}<br />
VBScript:<br />
if a=1 then<br />
msgbox "a"<br />
elseif b=1 then<br />
msgbox "b"<br />
else<br />
msgbox "c"<br />
end if<br />
The Web Design Guide for Newbies |80