目次 |
---|
・モーダルダイアログの表示 ・ソース ・モーダルダイアログのソース ・動作しないブラウザ ・IEのモーダルダイアログのソース表示 |
<html> <head> <title></title> </head> <body> <script type="text/javascript"> function a(){ var a = window.showModalDialog("./a.html",window,""); alert("戻り値 = " + a); } </script> <input type="button" value="button" name="submit" onClick="a()"> </body> </html>
<html> <head> <title></title> </head> <script type="text/javascript"> function a(){ window.returnValue="1"; window.close(); } function b(){ window.returnValue="2"; window.close(); } </script> <body> <input type="button" value="CLOSE1" name="submit" onClick="a()"> <input type="button" value="CLOSE2" name="submit" onClick="b()"> </body> </html>
C:¥Users¥Moriy¥AppData¥Local¥Temp