By gleble on
I want to use javascript on some of my pages. I have been running a script
<!--<html>
<body>
Field1: <input type="text" id="field1" value="Hello World!">
<br />
Field2: <input type="text" id="field2">
<br /><br />
Click the button below to copy the content of Field1 to Field2.
<br />
<button onclick="document.getElementById('field2').value=
document.getElementById('field1').value">Copy Text</button>
</body>
</html>-->
On the page I get nice submit boxes so the html's OK but the javascript doesn't work. I'm sure I need to do something else. What?
[edited to add <code> and </code> tags; nevets]