|
¢£ JavaScript - ´ðËÜÁàºî - ¥Õ¥©¡¼¥à¤ÎÃͤò¼èÆÀ¡õɽ¼¨ ¡¡¡¡ - 1.¥Æ¥¥¹¥È¥Ü¥Ã¥¯¥¹¤ÎÃͤò¼èÆÀ¤¹¤ë
¥Æ¥¥¹¥È¥ª¥Ö¥¸¥§¥¯¥È¤ÎÃͤò¼èÆÀ¤·¤Þ¤¹¡£
½ñ¼°¤Ï¡¢
¡¡¡¡ÊÑ¿ô̾=document.¥Õ¥©¡¼¥à̾.¥Æ¥¥¹¥È¥ª¥Ö¥¸¥§¥¯¥È̾.value;
¤È¤Ê¤ê¤Þ¤¹¡£
¥½¡¼¥¹ |
<html>
<head>
<script language="JavaScript">
<!--
function my1()
{a=document.form1.text1.value;
alert(a);}
//-->
</script>
</head>
<body>
<form name="form1">
<input type="text" name="text1"size="10">
<input type="button" value="CLICK!" onClick="my1()">
</form>
</body>
</html>
|
¼Â¹Ô·ë²Ì |
ÆþÎÏÍó¤Ëʸ»ú¤òÆþÎϤ·¤Æ¥Ü¥¿¥ó¤ò¥¯¥ê¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤¡£
|
|
|