新しいWindowの縦横サイズを指定して開く。window.open()関数
1 2 3 4 |
<!-- HTML 表記 --> <form name="form1"> <input type="button" id="bt1" value="サンプル画面開く" onClick="winopen()"> </form> |
1 2 3 4 5 6 7 8 |
// JavaScript 表記 <script type="text/javascript"> <!-- function winopen(){ win1=window.open("http://www.k-nagai.com/wp2/wp-content/themes/study/js3/c_sample.html","","width=300,height=150"); } //--> </script> |