点击按钮如何进入指定页面?

binsky 2003-10-19 10:32:50
把按钮属性设为button
点击进入到特定页面,,这语句怎么写?
...全文
96 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
bencalie 2003-10-19
  • 打赏
  • 举报
回复
晕,没写完

<input type=button onclick="location.href='http://www.sina.com.cn/'">Sina</button>
bencalie 2003-10-19
  • 打赏
  • 举报
回复
<input type=button onclick="http://www.sina.com.cn/">Sina</button>
心云意水 2003-10-19
  • 打赏
  • 举报
回复
onclick=window.open("http://xxx.xxx.xxx")
或者
onclick=location="http://xxx.xxx.xxx"
binsky 2003-10-19
  • 打赏
  • 举报
回复
高手们指点一下啊,急。。。

87,904

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧