| <html> |
| <script type="text/javascript"> |
| win1 = window.open('javascript:"<h1>TEST window.open</h2><p>left=0,top=0,height=100,width=200</p>"', "", "left=0,top=0,height=200,width=300"); |
| win2 = window.open('javascript:"<h1>TEST window.open</h2><p>menubar=no,status=no,location=no,toolbar=no,resizable=no,left=301,top=0,height=600,width=200</p>"', "", "menubar=no,status=no,location=no,toolbar=no,resizable=no,left=301,top=0,height=600,width=200"); |
| win3 = window.open('javascript:"<h1>TEST window.open</h2><p>status=no,location=no,toolbar=yes,resizable=yes,left=0,top=201,height=400,width=300</p>"', "", "status=no,location=no,toolbar=yes,resizable=yes,left=0,top=201,height=400,width=300"); |
| win4 = window.open('javascript:"<h1>TEST window.open</h2><p>menubar=yes,status=yes,location=no,toolbar=no,resizable=no,left=0,top=601,height=200,width=500</p>"', "", "menubar=yes,status=yes,location=no,toolbar=no,resizable=no,left=0,top=601,height=200,width=500"); |
| </script> |
| <body> |
| <p>This test uses javascript. |
| <p>It opens a series of windows with different attributes. |
| <p>The buttons below can be used for manually testing various types of javascript windows. |
| <form> |
| <input type="button" value="bring alert(message)" onClick="alert('message')"> |
| <input type="button" value="window.print" onClick="window.print()"> |
| <input type="button" value="confirm" onClick="if (confirm('Press Ok or Cancel to confirm')) {alert('You pressed OK');} else {alert('You pressed Cancel');}"> |
| </form> |
| </body> |
| </html> |