Cant get variable to display in html (very easy I'm sure)
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";
I have a file called about.html and in the head section of the document I have the code:
In the body section of about.html I have the following code:
<!-- hide from older browser
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?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread