button添加路径跳转

本页显示直接用location

  ①onclick="javascript:window.location.href='URL'"

  ②onclick="location='URL'"

  ③onclick="window.location.href='URL?id=11'"

如果页面中有frame可以将在location前面添加top.mainframe.frames['right_frame'].location

猜你喜欢

转载自blog.csdn.net/qq_35275233/article/details/85050154