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

JavaScriptʼþ´óÈ«

click() ¶ÔÏó.click() ʹ¶ÔÏó±»µã»÷¡£
closed ¶ÔÏó.closed ¶ÔÏó´°¿ÚÊÇ·ñÒѹرÕtrue/false
clearTimeout(¶ÔÏó) Çå³ýÒÑÉèÖõÄsetTimeout¶ÔÏó
clearInterval(¶ÔÏó) Çå³ýÒÑÉèÖõÄsetInterval¶ÔÏó
confirm("ÌáʾÐÅÏ¢") µ¯³öÈ·ÈÏ¿ò£¬È·¶¨·µ»ØtrueÈ¡Ïû·µ»Øfalse
cursor:Ñùʽ ¸ü¸ÄÊó±êÑùʽ hand crosshair text wait help default auto
e/s/w/n-resize
event.clientX ·µ»Ø×îºóÒ»´Îµã»÷Êó±êX×ø±êÖµ£»
event.clientY ·µ»Ø×îºóÒ»´Îµã»÷Êó±êY×ø±êÖµ£»
event.offsetX ·µ»Øµ±Ç°Êó±êÐüÍ£X×ø±êÖµ
event.offsetY ·µ»Øµ±Ç°Êó±êÐüÍ£Y×ø±êÖµ
document.write(document.lastModified) ÍøÒ³×îºóÒ»´Î¸üÐÂʱ¼ä
document.ondblclick=x µ±Ë«»÷Êó±ê²úÉúʼþ
document.onmousedown=x µ¥»÷Êó±ê¼ü²úÉúʼþ
document.body.scrollTop; ·µ»ØºÍÉèÖõ±Ç°ÊúÏò¹ö¶¯ÌõµÄ×ø±êÖµ£¬ÐëÓ뺯ÊýÅäºÏ
,
document.body.scrollLeft; ·µ»ØºÍÉèÖõ±Ç°ºáÏò¹ö¶¯ÎñµÄ×ø±êÖµ£¬ÐëÓ뺯ÊýÅä
ºÏ£¬
document.title document.title="message"; µ±Ç°´°¿ÚµÄ±êÌâÀ¸ÎÄ×Ö
document.bgcolor document.bgcolor="ÑÕÉ«Öµ"; ¸Ä±ä´°¿Ú±³¾°ÑÕÉ«
document.Fgcolor document.Fgcolor="ÑÕÉ«Öµ"; ¸Ä±äÕýÎÄÑÕÉ«
document.linkcolor document.linkcolor="ÑÕÉ«Öµ"; ¸Ä±ä³¬Áª½ÓÑÕÉ«
document.alinkcolor document.alinkcolor="ÑÕÉ«Öµ"; ¸Ä±äÕýµã»÷Áª½ÓµÄÑÕÉ«
document.VlinkColor document.VlinkColor="ÑÕÉ«Öµ"; ¸Ä±äÒÑ·ÃÎÊÁª½ÓµÄÑÕÉ«
document.forms.length ·µ»Øµ±Ç°Ò³form±íµ¥Êý
document.anchors.length ·µ»Øµ±Ç°Ò³ÃªµÄÊýÁ¿
document.links.length ·µ»Øµ±Ç°Ò³Áª½ÓµÄÊýÁ¿
document.onmousedown=x µ¥»÷Êó±ê´¥·¢Ê¼þ
document.ondblclick=x Ë«»÷Êó±ê´¥·¢Ê¼þ
defaultStatus window.status=defaultStatus; ½«×´Ì¬À¸ÉèÖÃĬÈÏÏÔʾ
function function xx(){...} ¶¨Ò庯Êý
isNumeric ÅжÏÊÇ·ñÊÇÊý×Ö
innerHTML xx=¶ÔÏó.innerHTML ÊäÈëij¶ÔÏó±êÇ©ÖеÄhtmlÔ´´úÂë
innerText divid.innerText=xx ½«ÒÔdiv¶¨Î»ÒÔidÃüÃûµÄ¶ÔÏóÖµÉèΪXX
location.reload(); ʹ±¾Ò³Ë¢Ð£¬target¿ÉµÈÓÚÒ»¸öˢеÄÍøÒ³
Math.random() Ëæ»úº­Êý,Ö»ÄÜÊÇ0µ½1Ö®¼äµÄÊý,Èç¹ûÒªµÃµ½ÆäËüÊý,¿ÉÒÔΪ*10,ÔÙ
È¡Õû
Math.floor(number) ½«¶ÔÏónumberתΪÕûÊý£¬ÉáÈ¡ËùÓÐСÊý
Math.min(1,2) ·µ»Ø1,2ÄĸöС
Math.max(1,2) ·µ»Ø1,2Äĸö´ó
navigator.appName ·µ»Øµ±Ç°ä¯ÀÀÆ÷Ãû³Æ
navigator.appVersion ·µ»Øµ±Ç°ä¯ÀÀÆ÷°æ±¾ºÅ
navigator.appCodeNam


Ïà¹ØÎĵµ£º

javascriptµÄº¯Êýµ÷Óü̳ÐʵÏÖ

¿´µ½Ò»ÆªÈëÃŵÄJS¼Ì³ÐÎÄÕÂ,תÔØÏÂ
Ô­µØÖ·:http://sdcyst.javaeye.com/blog/288813
Àà±äÁ¿/Àà·½·¨/ʵÀý±äÁ¿/ʵÀý·½·¨
ÏȲ¹³äÒ»ÏÂÒÔǰд¹ýµÄ·½·¨:
ÔÚjavascriptÖÐ,ËùÓеķ½·¨¶¼ÓÐÒ»¸öcall·½·¨ºÍapply·½·¨.ÕâÁ½¸ö·½·¨¿ÉÒÔÄ£Äâ¶ÔÏóµ÷Ó÷½·¨.ËüµÄµÚÒ»¸ö²ÎÊýÊǶÔÏó,ºóÃæµÄ
²ÎÊý±íʾ¶ÔÏóµ÷ÓÃÕâ¸ö·½·¨Ê±µÄ²ÎÊý(ECMAScript spec ......

Javascript ÖÐ ShowModalDialog µÄʹÓ÷½·¨

ShowModalDialogº¯ÊýµÄ¹¦ÄÜ£º
´ò¿ªÒ»¸ö×Ó´°¿Ú£¬²¢ÇÒ¿ÉÓ븸´°¿ÚÏ໥´«µÝÊý¾Ý£¬ËüÓëwindow.openµÄ×î´óÇø±ð¾ÍÔÚÓÚÓÉShowModalDialog´ò¿ª×Ó´°¿Úºó£¬¸¸´°¿Ú½«²»ÄܲÙ×÷¡£
ʹÓ÷½·¨£º
vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
²ÎÊý˵Ã÷£º
sURL
±ØÑ¡²ÎÊý£¬ÀàÐÍ£º×Ö·û´®¡£ÓÃÀ´Ö¸¶¨¶Ô»°¿òÒªÏ ......

JavaScript ³£Óú¯Êý(20100518)

javascriptÌṩÁËÐí¶àº¯Êý¹©¿ª·¢ÈËԱʹÓã¬ÏÂÃæ¸ø³öÒ»¸ö¼òµ¥½éÉÜ£¬¸üÏêϸµÄÐÅÏ¢Çë²Î¿¼Visual InterDevÌṩµÄÔÚÏß°ïÖú¡£
¡¡¡¡javascriptº¯ÊýÒ»¹²¿É·ÖΪÎåÀࣺ
¡¡¡¡·³£¹æº¯Êý
¡¡¡¡·Êý×麯Êý
¡¡¡¡·ÈÕÆÚº¯Êý
¡¡¡¡·Êýѧº¯Êý
¡¡¡¡·×Ö·û´®º¯Êý
¡¡¡¡1.³£¹æº¯Êý
¡¡¡¡javascript³ ......

JavascriptË¢ÐÂÒ³Ãæ´óÈ«

·Çģ̬ˢи¸Ò³Ã棺window.opener.location.reload();
ģ̬ˢи¸Ò³Ã棺window.dialogArguments.location.reload();
 
ÏÈÀ´¿´Ò»¸ö¼òµ¥µÄÀý×Ó£º
   ÏÂÃæÒÔÈý¸öÒ³Ãæ·Ö±ðÃüÃûΪframe.html¡¢top.html¡¢bottom.htmlΪÀýÀ´¾ßÌå˵Ã÷ÈçºÎ×ö¡£
  
   frame.html ÓÉÉÏ(top.html)ÏÂ(bo ......

event.keycode´óÈ«(javascript)

event.keycode´óÈ«(javascript)
keycode 8 = BackSpace BackSpace
keycode 9 = Tab Tab
keycode 12 = Clear
keycode 13 = Enter
keycode 16 = Shift_L
keycode 17 = Control_L
keycode 18 = Alt_L
keycode 19 = Pause
keycode 20 = Caps_Lock
keycode 27 = Escape Escape
keycode 32 = space space
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ