下面是我已经测试过的,没有问题

<input value="标题" type="button" onclick="window.location='http://www.baidu.com'"/>

 

打开新页面

<input value="标题" type="button" onclick='window.open("http://www.baidu.com")' />

 

转换本页面

<input value="标题" type="button" onclick='location.href("http://www.baidu.com")' />

 

相关文章:

  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2021-08-28
  • 2021-10-17
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案