1
<input type=button value=刷新 onclick="history.go(0)">
2
<input type=button value=刷新 onclick="location.reload()">
3
4
<input type=button value=刷新 onclick="location=location">
5
6
<input type=button value=刷新 onclick="location.assign(location)">
7
8
<input type=button value=刷新 onclick="document.execCommand('Refresh')">
9
10
<input type=button value=刷新 onclick="window.navigate(location)">
11
12
<input type=button value=刷新 onclick="location.replace(location)">
13
14
<input type=button value=刷新 onclick="window.open('自身的文件','_self')">
15
16
<input type=button value=刷新 onClick=document.all.WebBrowser.ExecWB(22,1)>
17
下面的代码实现了 文件选择
2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

1
代碼:
2
<form>
3
<input type="text" name="ft1">
4
<input type="button" value="點偶" onclick="document.forms[0].file1.click()">
5
<input type="file" name="file1" style="display:none" onchange="document.forms[0].ft1.value=document.forms
6
7
[0].file1.value">
8
</form>
9

2

3

4

5

6

7

8

9

1
<input type=button id="refreshbutton" value="停止刷新" onClick=" ChangeName(document.getelementbyID("refreshbutton"))">
2
<input type=text value="test1">
3
<input type=text value="test2">
4
<input type=text value="test3">
5
<input type=text value="test4">
6
<input type=text value="test5">
7
<script>
8
9
10
var limit="0:10"
11
12
if (document.images){
13
var parselimit=limit.split(":")
14
parselimit=parselimit[0]*60+parselimit[1]*1
15
}
16
function beginrefresh(){
17
if (!document.images)
18
return
19
if (parselimit==1)
20
window.location.reload()
21
else{
22
parselimit-=1
23
curmin=Math.floor(parselimit/60)
24
cursec=parselimit%60
25
if (curmin!=0)
26
curtime=curmin+"分"+cursec+"秒后重刷本页!"
27
else
28
curtime=cursec+"秒后重刷本页!"
29
window.status=curtime
30
setTimeout("beginrefresh()",1000)
31
}
32
}
33
34
window.onload=beginrefresh
35
36
37
</script>

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37
