/
index.html
49 lines (43 loc) · 1.28 KB
/
index.html
1
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
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>javascript pseudo-protocol errors</title>
<meta http-equiv="refresh" content="10; url=pseudoGifTest.html">
<link rel="index" href="http://jibbering.com/faq/">
<script type="text/javascript">
var loadTime;
function init(){
loadTime = +new Date
showTime();
setInterval(showTime, 100);
}
window.onbeforeunload = function() {
document.getElementById("bNotifier").value = "beforeonload handler called";
};
function showTime(){
document.forms['f'].elements['t'].value = (((new Date()).getTime() - loadTime)/1000)
}
</script>
</head>
<body onload="init()">
<h1>javascript: uri problems demo</h1>
<p>
<img src="waveAnim.gif" alt="animated wave">
</p>
<form action="" onsubmit="return false;" name="f">
<input type="text" value="" name="t" size="20">
<input type="text" value="" id="bNotifier" size="30">
</form>
<h3>javascript: uri as href</h3>
<p>
<a href="javascript:void 0;">javascript:void 0;</a>
</p>
<h3>Actual link to invalid URL</h3>
<a href="http://bogus.example.com/v.html">http://bogus.example.com/</a>
<h3>javascript: uri with syntactially invalid code</h3>
<p>
<a href="javascript:void();">javascript:void();</a>
</p>
</body>
</html>