Menu
I keep getting this error, even though the function does exist! I have
[code]
<script type=”text/javascript”>
function undo(){
alert(“undo”);
//some undo code here
}
</script>
….
<input value=”Undo” name=”undo” onclick=”undo()” type=”button”>
When I click the button, I get an error saying function undo does not exist. But if I just call the function immediately after the page loads by putting
[code]
<script>
undo();
</script>
At the bottom of my page, the alert box will pop up. I don’t know why clicking the button says the function doesn’t exist.