Hello - My name is Max and i am new to Java Programming so thank you for helping me out.
I have a file names maxcode.js which is a .txt file and contains the following 2 lines :
var chameleon = "blue";
Var Weight
I have a file called about.html and in the head section of the document I have the code:
<script type="text/javascript" src="maxcode.js"></script>>
In the body section of about.html I have the following code:
<script language="JavaScript">
<!-- hide from older browser
document.write(chameleon)
//-->
</script>
At present nothing is displayed but by goal is to have the word blue displayed per the variables defined in the .js file. Can you help?


Reply With Quote

Bookmarks