I am new to Java Script and I am having a hard time trying to pass a parm to a function. I have written a script, but it dose not work, Why, Pleas help:
<HTML>
<HEAD>
<TITLE>Title of your page</TITLE>
<META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2">
<script LANGUAGE="javascript">
function testFunc( one, two) {
document.write( "<tr>"
;
document.write( "<td>" + one + "</td>"
;
document.write( "<td>" + two + "</td>"
;
document.write( "<tr>"
;
}
</script>
</HEAD>
<BODY>
cont = 100
bont = 210
while (cont > 0) {
testFunc(cont, bont);
cont -= 10;
}
</BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>Title of your page</TITLE>
<META NAME="generator" CONTENT="ToniArts EasyHtml v.2.2">
<script LANGUAGE="javascript">
function testFunc( one, two) {
document.write( "<tr>"
document.write( "<td>" + one + "</td>"
document.write( "<td>" + two + "</td>"
document.write( "<tr>"
}
</script>
</HEAD>
<BODY>
cont = 100
bont = 210
while (cont > 0) {
testFunc(cont, bont);
cont -= 10;
}
</BODY>
</HTML>