File indexing completed on 2024-11-17 04:18:54

0001 <html>
0002 <head>
0003 <title>Javascript Link Tests</title>
0004 <script type="text/javascript">
0005 function resize()
0006 {
0007     window.resizeTo(580, 420);
0008 }
0009 
0010 function move()
0011 {
0012     window.moveTo(180, 120);
0013 }
0014 
0015 function promptAndAlertMessage()
0016 {
0017     var message = prompt("Enter a message.", "");
0018     alert(message);
0019 }
0020 
0021 function statusMessage()
0022 {
0023     window.status = 'A new status message.';
0024 }
0025 
0026 function openWindow()
0027 {
0028     window.open("about:blank", "NewWindowTest1", "width=300, height=400");
0029 }
0030 
0031 function openWindowFrameTest()
0032 {
0033     var new_window = window.open('about:blank','testpage','width=800,height=600');
0034     new_window.location="frameset_test.html";
0035 }
0036 
0037 </script>
0038 </head>
0039 <body>
0040 <script type="text/javascript">
0041 document.writeln("navigator.appName: " + navigator.appName + "<br />");
0042 document.writeln("navigator.appVersion: " + navigator.appVersion + "<br />");
0043 </script>
0044 <h1>Javascript Link Tests</h1>
0045 <a href="javascript:resize()">resizeTo</a><br />
0046 <a href="javascript:move()">moveTo</a><br />
0047 <a href="javascript:promptAndAlertMessage()">promptAndAlertMessage</a><br />
0048 <a href="javascript:statusMessage()">status</a><br />
0049 <a href="javascript:window.open('about:blank', 'NewWindowTest1', 'width=300, height=400')">JS open new window</a><br />
0050 <a href="javascript:openWindowFrameTest()">JS open new frameset</a><br />
0051 </body>
0052 </html>