莫言败的个人主页

年轻没有什么不可以

  • 首页
  • 微言
  • 工作日志

Dreamweaver用按键(button)刷新页面的N种方法

作者 :莫言败      文章分类 :计算机基础      订阅:RSS 2.0            

?  在做页面(www.zhouqiche.info/search.php)时,?想让按钮刷新后显示下一张图片,一直不得其解,找了好就才找到一篇有用的。试了一试第一个能用,所以就转帖过来了:

<input type=button value="刷新" onclick="history.go(0)">

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

<input type="button" value="刷新" onclick="location=location">

<input type="button" value="刷新" onclick="location.assign(location)">

<input type="button" value="刷新" onclick="document.execCommand('Refresh')">

<input type="button" value="刷新" onclick="window.navigate(location)">

<input type="button" value="刷新" onclick="location.replace(location)">

<input type="button" value="刷新" onclick="window.open('自身的文件','_self')">

<input type="button" value="刷新" onClick=document.all.WebBrowser.ExecWB(22,1)>
<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>

<form action="自身的文件">
<input  type="button" value="刷新" >
</form>

<a id=a1 href="自身的文件"></a>
<input  type="button" value="刷新"  onclick="a1.click()">

  另外发现,其实不一定非用css才能使代码很美观,其实用 style=”” 也可以实现大部分的属性设置。比方说按键的大小:style=”width:100px; height:30px”

Tags: Dreamweaver, 刷新, 按键

文章于 2010年 10 月 3日,星期日 ,下午 10:42 发表。

Leave a Reply

邮箱

请输入验证码:

  • 分类

    • 工作日志 (123)
    • 建站历程 (16)
    • 微言 (253)
    • 旅游随笔 (2)
    • 生活杂谈 (73)
    • 计算机基础 (3)
    • 诡异的想法 (7)
  • 2026 年 9 月
    一 二 三 四 五 六 日
     123456
    78910111213
    14151617181920
    21222324252627
    282930  
    « 6 月    
  • 归档

  • 链接表

    • 网址大全

Copyright © 2026 - 莫言败的个人主页 | 晋ICP备11007077号 |