怎样在Button的click事件中 刷新网页??各位帮帮忙呀

my09dream 2009-08-11 04:47:35
怎样在Button的click事件中 刷新网页??
...全文
46 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
anjing5566 2009-08-11
  • 打赏
  • 举报
回复

<input type=button onclick='location.reload()' value="刷新">
<input type=button onclick='location.href=document.URL' value="刷新">

lek608 2009-08-11
  • 打赏
  • 举报
回复
<script>location.reload();</script>
lingfeng179 2009-08-11
  • 打赏
  • 举报
回复
<input type=button onclick="history.go(0)">
in0512 2009-08-11
  • 打赏
  • 举报
回复
<input type=button onclick='location.reload()' value="刷新">
lek608 2009-08-11
  • 打赏
  • 举报
回复
要用到脚本代码,你先编写一段刷新网页的脚本函数,再在Button中写上onclick="此函数名"
刷新代码你可以在网上查到

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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