Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÓÃjavascriptʵÏÖ×Óҳˢи¸Ò³µÄ¿Ø¼þ

1 Add  the following code to .aspx
<script>  
  function fresh() {
         {
            window.opener.document.getElementById("ControlId").click();  //ControlId -- meaning parent control
        }
<script>
2.Add the following code to .cs,if you want to refresh master page control.
ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "fresh(');", true);


Ïà¹ØÎĵµ£º

javaScriptÕýÔò±í´ïʽ

Ò» javascriptÕýÔò±í´ïʽµÄ»ù±¾ÖªÊ¶
1     javascript ÕýÔò¶ÔÏó´´½¨ ºÍÓ÷¨
    ÉùÃ÷javascript ÕýÔò±í´ïʽ
   
     var reCat = new RegExp("cat");
      ÄãÒ²¿ÉÒÔ
     var reCat = /cat ......

JavascriptµÄIEºÍFirefox¼æÈÝÐÔ»ã±à

ÒÔÏÂÒÔ IE ´úÌæ Internet Explorer£¬ÒÔ MF ´úÌæ Mozzila Firefox
1. document.form.item ÎÊÌâ
(1)ÏÖÓÐÎÊÌ⣺
ÏÖÓдúÂëÖдæÔÚÐí¶à document.formName.item("itemName") ÕâÑùµÄÓï¾ä£¬²»ÄÜÔÚ MF ÏÂÔËÐÐ
(2)½â¾ö·½·¨£º
¸ÄÓà document.formName.elements["elementName"]
(3)ÆäËü
²Î¼û 2
2. ¼¯ºÏÀà¶ÔÏóÎÊÌâ
(1)ÏÖÓÐÎÊÌ⣠......

Ò»ÌõJavaScriptÓï¾ä»ñÈ¡µ±Ç°ÍøÒ³ËùÓÐͼƬµÄurl


ÔÚµØÖ·À¸ÊäÈ룺
javascript:str='';for%20(var1=0;var1<document.images.length;var1++){str+='\n'+document.images[var1].src};if(str!=''){document.write(str);void(document.close())}else{alert('No%20images!')}
È»ºó²é¿´Ð³öÀ´µÄÒ³ÃæµÄÔ´´úÂë
ÈôÒªÏÔʾ³öÀ´£¬Ôò£º
javascript:funcname='';for%20(var1=0;var ......

Ì½ÃØIE8µÄÇ¿´óJavaScript¹¦ÄÜ

±¾ÎÄÀ´×Ôhttp://q.yesky.com/group/review-17634017.html£¬ÁíÍ⻹Ìí¼ÓһЩÀïÃæ¼¼ÊõµÄÁ´½Ó¡£
ÀëÏßʼþ(Online and offline events):
https://developer.mozilla.org/En/Online_and_offline_events
https://bug336359.bugzilla.mozilla.org/attachment.cgi?id=220609
http://ejohn.org/blog/offline-events/
postMessage ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ