・Enterキーで送信される例 <form> <input type="text"> <input type="submit" value="認証"> </form> ・Enterキーで送信されない例(フォームで括られていない) <input type="text"> <input type="submit" value="認証"> ・Enterキーで送信されない例(ボタンのtypeが違う) <form> <input type="text"> <input type="button" value="認証"> </form>
<form action="test.html"
onsubmit="if(this.elements[0].value !='1234'){alert('パスワードが違...');return false}">
<input type="text">
<input type="submit" value="認証">
</form><form name="ok"> <input type=password name="pass"> <input type=submit value="認証" onsubmit="parent.right.location.href=document.ok.pass.value+'.html';"> </form>
<html> <head> <title>X.jp</title> </head> <frameset cols="20%,*" frameborder=no framespacing=0> <frame src="menu.html" name="left"> <frame src="main_01.html" name="right"> </frameset> </html>
<html> <head> <meta http-equiv="content-type" content="text/html;charset=Shift_JIS"> <meta name="generator" content=""> <title>テスト</title> </head> <frameset cols="159,*" frameborder=no framespacing=0> <frame src="manu.html" name="left" > <frame src="main.html" name="right"> </frameset> </html>