When I have a form and click the button in the form, if I don’t want it to submit, what is the proper way to do that?
Right now I do this:
[code]
<form name=’frmName’ method=’post’ action=’test.html’ onSubmit=’return false;’>
Is there a different way to do this? In IE it seems to work, but in firefox, it hangs forever.
************ON EDIT
i think I found out what it is….
its not the form or the onsubmit…..its the fact that I put a document.write in the <head><script></script></head>
right when I put this in, it hangs…..
[code]
<head>
<script>
function test(){
document.getElementById(‘settings’).style.display=’none’;
document.write(“<div>test<br>test<br>test</div>”);
}
</script>
</head>
Can you not put a document.write in a function in the script tags?
Does firefox not use document.write?
************ON EDIT
I figured it out…..I had to replace the document.writes with document.getElementById(‘name’).innerHTML
is it possible to delete this post?