In js, the window. location. hrefwindow. location. href jump does not respond. ahyperlink onclick. Click to jump to a solution without a response problem. The error code is mainly in href = "#" here.
The Code is as follows:
Incorrect syntax, mainly in href = "#" here
The script is as follows:
The Code is as follows:
If (data = "sent successfully "){
Alert (data );
Window. location. href = window. location. href;
}
The correct href is followed by a javascript: void (0). If it is IE6, it is best to add a return false after onclick.
1:
The Code is as follows:
Send
2:
The Code is as follows:
Send
3: This writing method is recommended, and ie6 can be perfectly supported.
The Code is as follows:
Send
The three methods above can be used, and there is no difference. When the return false is returned in the buttonClick function, the function is also blocked from continuing to run.