JavaScript»ù±¾ÔªËØ
1.Text µ¥Ðе¥ÁÐÊäÈëÔªËØ
¹¦ÄÜ£º¶ÔText±êʶÖеÄÔªËØʵʩÓÐЧµÄ¿ØÖÆ
»ù±¾ÊôÐÔ£º
Name£ºÉ趨Ìá½»ÐÅϢʱµÄÐÅÏ¢Ãû³Æ¡£¶ÔÓ¦ÓÚHTMLÎĵµÖеÄName¡£
Value£ºÓÃÒÔÉ趨³öÏÖÔÚ´°¿ÚÖжÔÓ¦HTMLÎĵµÖÐValueµÄÐÅÏ¢¡£
defaultvalue£º°üÀ¨TextÔªËصÄĬÈÏÖµ
»ù±¾·½·¨£º
blur()£º½«µ±Ç°½¹µãÒƵ½ºǫ́¡£
select()£º¼ÓÁÁÎÄ×Ö¡£
¡¡ Ö÷Ҫʼþ£º
onFocus£ºµ±Text»ñµÃ½¹µãʱ£¬²úÉú¸Ãʼþ¡£
OnBlur£º´ÓÔªËØʧȥ½¹µãʱ£¬²úÉú¸Ãʼþ¡£
Onselect£ºµ±ÎÄ×Ö±»¼ÓÁÁÏÔʾºó£¬²úÉú¸ÃÎļþ¡£
onchange£ºµ±TextÔªËØÖµ¸Ä±äʱ£¬²úÉú¸ÃÎļþ¡£
£²¡¢textarea ¶àÐжàÁÐÊäÈëÔªËØ
¡¡ ¹¦ÄÜ£ºÊµÊ©¶ÔTextareaÖеÄÔªËؽøÐпØÖÆ¡£
¡¡ »ù±¾ÊôÐÔ£º
name£ºÉ趨Ìá½»ÐÅϢʱµÄÐÅÏ¢Ãû³Æ£¬¶ÔÓ¦HTMLÎĵµTextareaµÄName¡£
Value£ºÓÃÒÔÉ趨³öÏÖÔÚ´°¿ÚÖжÔÓ¦HTMLÎĵµÖÐValueµÄÐÅÏ¢¡£
 
Ïà¹ØÎĵµ£º
ÔÚUpdatepanelÖÐʹÓÃJAVASCRIPTµÄÎÊÌâ
ÔÚUpdatePanle×ÜʹÓÃjavascriptÈ磺Response.Write("<script language='javascript'>alert('" + error.Message.ToString() + "');history.back(-1);</script>"); ʱ£¬µ¯³öÀ´Ò»¸öÌáʾ¶Ô»°¿ò
Sys.WebForms.PageRequestManagerParserErrorException:
The message ......
ÔÎÄ£ºÁõÎä|JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ
ÖÚËùÖÜÖªwindow.open() º¯Êý¿ÉÒÔÓÃÀ´´ò¿ªÒ»¸öд°¿Ú£¬ÄÇôÈçºÎÔÚ×Ó´°ÌåÖÐÏò¸¸´°Ìå´«ÖµÄØ£¬Æäʵͨ¹ýwindow.opener¼´¿É»ñÈ¡¸¸´°ÌåµÄÒýÓá£
ÈçÎÒÃÇн¨´°ÌåFatherPage.htm:
XML-Code:
<script type="text/javascript">
function OpenChildWindow()
{ ......
ÔÎÄ£ºÁõÎä|JavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«Öµ2-showModalDialog
ǰһƪÎÄÕÂJavascriptÔõôÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµÖн²µ½ÁËÈçºÎÀûÓÃwindow.open()·½·¨´ò¿ªÐ´°Ì壬²¢ÔÚÁ½¸ö´°ÌåÖ®¼ä´«ÖµµÄ·½·¨¡£javascriptÖл¹ÓÐÒ»¸öº¯Êýwindow.showModalDialogÒ²¿ÉÒÔ´ò¿ªÒ»¸öд°Ì壬²»¹ýËû´ò¿ªµÄÊÇÒ»¸öģ̬´°¿Ú£¬ÄÇôÈçºÎÔÚ¸¸´°Ì ......
×¢£º http://www.java114.com/277/content4355.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> upload </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME ......
±Õ°ü£¨closure£©ÊÇJavascriptÓïÑÔµÄÒ»¸öÄѵ㣬ҲÊÇËüµÄÌØÉ«£¬ºÜ¶à¸ß¼¶Ó¦Óö¼ÒªÒÀ¿¿±Õ°üʵÏÖ¡£
ÏÂÃæ¾ÍÊÇÎÒµÄѧϰ±Ê¼Ç£¬¶ÔÓÚJavascript³õѧÕßÓ¦¸ÃÊǺÜÓÐÓõġ£
Ò»¡¢±äÁ¿µÄ×÷ÓÃÓò
ÒªÀí½â±Õ°ü£¬Ê×ÏȱØÐëÀí½âJavascriptÌØÊâµÄ±äÁ¿×÷ÓÃÓò¡£
±äÁ¿µÄ×÷ÓÃÓòÎ޷ǾÍÊÇÁ½ÖÖ£ºÈ«¾Ö±äÁ¿ºÍ¾Ö²¿±äÁ¿¡£
JavascriptÓïÑÔµÄÌØÊâÖ®´¦£¬¾ÍÔÚÓ ......