みのお

  • <html> <head> <title>サンプル</title> <script type = “text/javascript”> <!– function matchPass() { var inpass = document.forms[ “pass” ].elements[ “inpass” ].value; var validpass = “yahoo!”; if( inpass == validpass ) location.href = “http://www.yahoo.co.jp”; else alert( “パスワードが間違っています。” ); } </script> </head> <body> <form name = “pass”> <div> <input type = “text” value = “” name = “inpass”> <input type = “button” value = “認証” onclick = “matchPass();”> </div> </form> </body> </html>

topへ戻る