¼òµ¥µÄhtml JavaScript ÎÊÌâ - Web ¿ª·¢ / JavaScript
HTML code:
<html>
<script language="javascript" type="text/javascript">
function fun()
{
alert(document.input.Sex.value);
}
</script>
<body>
<form name="input" method="get">
Male:
<input type="radio" name="Sex" value="1" checked="checked">
<br>
Female:
<input type="radio" name="Sex" value="2">
<br>
<input type ="submit" value ="Submit" onclick="return fun()">
</form>
</body>
</html>
Ϊʲôµ±ÎÒ°´ÏÂsubmitʱ£¬alert³öµÄÌáʾ¿ò²»ÏÔʾ 1»ò2 £¬¶øÊÇÏÔʾundefined, ¹Ø¼üÊÇÎÒÈçºÎ½â¾öÕâ¸öÎÊÌâÔõÑùÄÜ°´male»ñµÃ1£¬°´female »ñµÃ2
HTML code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<script language="javascript" type="text/javascript">
function fun()
{
var radio=document.getElementsByName("Sex");
for(var i=0;i<radio.length;i++){
if(radio[i].checked){
alert(radio[i].value);
}
}
}
</script>
<body>
<form name="input" method="get">
Male:
<in
Ïà¹ØÎÊ´ð£º
ÎÒÓõÄÊÇÁ¬½Ó³Ø×öµÄ£¬ÅäÁ¬½Ó³ØµÄ·½·¨Ó¦¸ÃûÓÐ´í£¬ÎªÊ²¾ÍÊdzöÏÖÕâÖÖÎÊÌâ
javax.servlet.ServletException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/test
ÇëÎÊ´óÏÀÃÇÕâÊÇÔ ......
ÎÒÓÃobject±êÇ©ÔØÈëÒ»¸öÍⲿµÄhtmlÎļþ¿ÉÊÇÓÃvs2008´ò¿ªÈ´²»ÏÔʾ,ÏÔʾºì²æ,ÇëÎÊÊÇÔõô»ØÊÂ?
ÓÃiframeÔØÈë¡£
¿ÉÒÔÓÃiframeÔØÈë
ÓÃiframeÔØÈ볬Á´½ÓµØÖ·²»¸Ä±ä,û°ì·¨ÌøתҳÃæ
ÒýÓÃ
ÓÃiframeÔØÈ볬Á´½ÓµØÖ· ......
ÔÚJSPÒ³ÃæÓÐÒ»¸ö<input type="hidden" name="index" value="0">/>¿Ø¼þ
µ±ÎÒÓÃÏÂÃæµÄJavaScriptº¯Êý¸Ä±äÆävalueµÄÖµµÄʱºò Èç¹ûÂú×ãÌõ¼þ£¨¼´i>=3µÄʱºò£©ÎªÊ²Ã´valueµÄ ......
ÎÒÏëÎÊÒ»ÏÂÈçºÎÔÚ»ðºüÖйرգ¬·Ç½Å±¾´ò¿ªµÄÒ³Ã棬ºÃÏñwindow.close()²»¹ÜÓÃO(¡É_¡É)O~£¬
°Ù¶Èһϣ¬×Ô¼ºÊÔÊÔ
<script language="javascript" type="text/javascript">
& ......
ÎÒÏë°ÑһЩext¿Ø¼þ¡¢±ÈÈçtextbox¡¢select¡¢¡¢Ð´Èëµ½htmlÒ³ÃæÀȻºóͨ¹ýext¸³Öµ£¬´Ó¶øʵÏÖÔö¡¢É¾¡¢¸Ä¡¢²éµÈ²Ù×÷ÔÚÒ»¸öºǫ́ҳÃæÖнøÐУ¬
×îºÃÊÇÍêȫͨ¹ýExtÉú³É£¬·ñÔòÓÐÁË´íÎ󶼲»Öªµ½ÄÇÈ¥ÕÒ£¬ExtËäȻǿ ......