- <A Class="Bt_3" Href="Javascript: void (0 )" ID="Btnsubmit1" Onclick="Submitpage ()">Submit</A>
<A class = "bt_3" href = "javascript: void (0)" id = "btnsubmit1" onclick = "submitpage ()"> submit </a>
Submitpage () is a function defined by me. It is used to submit a form when you click <A>. FT and IE6 cannot be submitted.
This is because IE6 executes the default action. Currently, there are two solutions:
Method 1:
<A Class="Bt_3" Style="Cursor: pointer ;" ID="Btnsubmit1" Onclick="Submitpage ()">Submit</A>
<A class = "bt_3" style = "cursor: pointer;" id = "btnsubmit1" onclick = "submitpage ()"> submit </a>
This method does not have the href attribute at all, and uses style = "cursor: pointer;" to generate a hand icon for simulation.
Another method:
- <A Class="Bt_3" Href="Javascript: void (0 )" ID="Btnsubmit1" Onclick="Submitpage (); Return false ;">Submit</A>
<A class = "bt_3" href = "javascript: void (0)" id = "btnsubmit1" onclick = "submitpage (); Return false;"> submit </a>
Onclick returns false to block the default behavior of the browser. You can also achieve the same purpose.