Menu
i want to have a button thats value canges to a pre-defined variable when clicked but i dont know how to write it so far i’ve got
<HEAD>
<SCRIPT….>
….
var message = “jam”;
….
</SCRIPT>
</HEAD>
<BODY>
…….
<INPUT type=”button” value=”click” onClick=”this.value=message;”>
…….
</BODY>
but it just says there’s an error in the onClick part.
can you help or show an example???
if unclear just post to say and i will rectify