A js is used to jump by clicking the button. The statement is very simple:
During testing, it was found that it can be used in IE but not in firefox. So I added a window in front of the location, that is, changed it to:
onclick="window.location.href('http://baidu.com');"
I found that it still didn’t work. .
So I went to Baidu and found an answer:
Use window.location="url"; instead of location.href('url');"
So I changed the source The program can be changed as follows: