Generally, under tag,
{
Function onclick ()
{
DP. Sh. toolbar. Command ('viewsource', this); Return false;
}
} "Href =" http://www.pigblog.net/javascript-form-submit-ie6.html "> View plain {
Function onclick ()
{
DP. Sh. toolbar. Command ('copytoclipboard', this); Return false;
}
} "Href =" http://www.pigblog.net/javascript-form-submit-ie6.html "> copy to clipboard {
Function onclick ()
{
DP. Sh. toolbar. Command ('printsource', this); Return false;
}
} "Href =" http://www.pigblog.net/javascript-form-submit-ie6.html "> Print {
Function onclick ()
{
DP. Sh. toolbar. Command ('about', this); Return false;
}
} "Href =" http://www.pigblog.net/javascript-form-submit-ie6.html ">?
- <A rel = "nofollow" target = "_ blank" href = "javascript: void (0)" id = "submita"> A>
- $ ('Submita'). onclick = function (){
- $ ('Formid '). Submit ();
- }
$('submitA').onclick = function(){ $('formId').submit();}
If your statement is the same as above, you will find that the form cannot be submitted under IE6. There are two solutions:
I. Change the expression of tag
{
Function onclick ()
{
DP. Sh. toolbar. Command ('viewsource', this); Return false;
}
} "Href =" http://www.pigblog.net/javascript-form-submit-ie6.html "> View plain {
Function onclick ()
{
DP. Sh. toolbar. Command ('copytoclipboard', this); Return false;
}
} "Href =" http://www.pigblog.net/javascript-form-submit-ie6.html "> copy to clipboard {
Function onclick ()
{
DP. Sh. toolbar. Command ('printsource', this); Return false;
}
} "Href =" http://www.pigblog.net/javascript-form-submit-ie6.html "> Print {
Function onclick ()
{
DP. Sh. toolbar. Command ('about', this); Return false;
}
} "Href =" http://www.pigblog.net/javascript-form-submit-ie6.html ">?
- <A rel = "nofollow" target = "_ blank" href = "#" id = "submita"> A>
Replace javascript: void (0) #.
2. Handle the submit action in Javascript
$ ('Submita'). onclick = function (){
SetTimeout (function () {$ ('formid '). Submit () ;}, 0 );
}
3. If there is a base tag on the page, the first method will jump to the homepage. Remove the href attribute and add style = "cursor: pointer;" to add the hand effect.