OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Testing Alerts</title> | 3 <title>Testing Alerts</title> |
4 | 4 |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 function setInnerText(id, value) { | 6 function setInnerText(id, value) { |
7 document.getElementById(id).innerHTML = '<p>' + value + '</p>'; | 7 document.getElementById(id).innerHTML = '<p>' + value + '</p>'; |
8 } | 8 } |
9 | 9 |
10 function displayPrompt() { | 10 function displayPrompt() { |
(...skipping 28 matching lines...) Loading... |
39 | 39 |
40 <p>Let's make the <a href="#" id="prompt-with-default" onclick="displayPromptWit
hDefault();">prompt with default happen</a></p> | 40 <p>Let's make the <a href="#" id="prompt-with-default" onclick="displayPromptWit
hDefault();">prompt with default happen</a></p> |
41 | 41 |
42 <p>Let's make TWO <a href="#" id="double-prompt" onclick="displayTwoPrompts();">
prompts happen</a></p> | 42 <p>Let's make TWO <a href="#" id="double-prompt" onclick="displayTwoPrompts();">
prompts happen</a></p> |
43 | 43 |
44 <p>A <a href="#" id="slow-alert" onclick="slowAlert();">SLOW</a> alert</p> | 44 <p>A <a href="#" id="slow-alert" onclick="slowAlert();">SLOW</a> alert</p> |
45 | 45 |
46 <p>This is a test of a confirm: | 46 <p>This is a test of a confirm: |
47 <a href="simpleTest.html" id="confirm" onclick="return confirm('Are you sure
?');">test confirm</a></p> | 47 <a href="simpleTest.html" id="confirm" onclick="return confirm('Are you sure
?');">test confirm</a></p> |
48 | 48 |
49 <p>This is a test of showModalDialog: <a href="#" id="dialog" onclick="showModal
Dialog('javascriptPage.html')">test dialog</a></p> | |
50 | |
51 <p>This is a test of an alert in an iframe: | 49 <p>This is a test of an alert in an iframe: |
52 <iframe src="iframeWithAlert.html" name="iframeWithAlert"></iframe> | 50 <iframe src="iframeWithAlert.html" name="iframeWithAlert"></iframe> |
53 </p> | 51 </p> |
54 | 52 |
55 <p>This is a test of an alert in a nested iframe: | 53 <p>This is a test of an alert in a nested iframe: |
56 <iframe src="iframeWithIframe.html" name="iframeWithIframe"></iframe> | 54 <iframe src="iframeWithIframe.html" name="iframeWithIframe"></iframe> |
57 </p> | 55 </p> |
58 | 56 |
59 <p>This is a test of an alert open from onload event handler: <a id="open-page-w
ith-onload-alert" href="pageWithOnLoad.html">open new page</a></p> | 57 <p>This is a test of an alert open from onload event handler: <a id="open-page-w
ith-onload-alert" href="pageWithOnLoad.html">open new page</a></p> |
60 | 58 |
61 <p>This is a test of an alert open from onload event handler: <a id="open-window
-with-onload-alert" href="pageWithOnLoad.html" target="onload">open new window</
a></p> | 59 <p>This is a test of an alert open from onload event handler: <a id="open-window
-with-onload-alert" href="pageWithOnLoad.html" target="onload">open new window</
a></p> |
62 | 60 |
63 <p>This is a test of an alert open from onunload event handler: <a id="open-page
-with-onunload-alert" href="pageWithOnUnload.html">open new page</a></p> | 61 <p>This is a test of an alert open from onunload event handler: <a id="open-page
-with-onunload-alert" href="pageWithOnUnload.html">open new page</a></p> |
64 | 62 |
65 <p>This is a test of an alert open from onclose event handler: <a id="open-windo
w-with-onclose-alert" href="pageWithOnUnload.html" target="onclose">open new win
dow</a></p> | 63 <p>This is a test of an alert open from onclose event handler: <a id="open-windo
w-with-onclose-alert" href="pageWithOnUnload.html" target="onclose">open new win
dow</a></p> |
66 | 64 |
67 <p>This is a test of an alert open from onclose event handler: <a id="open-new-w
indow" href="blank.html" target="newwindow">open new window</a></p> | 65 <p>This is a test of an alert open from onclose event handler: <a id="open-new-w
indow" href="blank.html" target="newwindow">open new window</a></p> |
68 | 66 |
69 <div id="text"></div> | 67 <div id="text"></div> |
70 <div id="text1"></div> | 68 <div id="text1"></div> |
71 <div id="text2"></div> | 69 <div id="text2"></div> |
72 </body> | 70 </body> |
73 </html> | 71 </html> |
OLD | NEW |