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 &nbs
Ïà¹ØÎĵµ£º
m=a.getMonth(); //»ñÈ¡Ô·ÝÖµ
d=a.getDate(); //»ñÈ¡ÈÕÆÚÖµ
d1=a.getDay(); //»ñÈ¡µ±Ç°ÐÇÆÚÖµ
h=a.getHours(); //»ñÈ¡µ±Ç°Ð¡Ê±Êý
m1=a.getMinutes(); //»ñÈ¡µ±Ç°·ÖÖÓÊý
s=a.getSeconds(); //»ñÈ¡µ±Ç°ÃëÖÓÊý
¶ÔÏó.style.fontSize="ÎÄ×Ö´óС";
µ¥Î»£ºmm/cm/inÓ¢´ç/pcÅÁ/ptµã/pxÏóËØ/emÎÄ×Ö¸ß
1in=1.25cm
1pc=12pt
......
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" onc ......
ÔÚÉè¼ÆjavascriptµÄ¼Ì³ÐÌåϵʱ£¬ÓÐÒ»¸öÖØÒªÐèÇ󣬷½·¨Á´¡£Í¨Ë×µØ˵£¬ËµÊÇÔÚ·½·¨Öе÷Óø¸ÀàµÄͬÃû·½·¨¡£ÀàËÆjavaµÄthis.super().method()¡£ÈçºÎ°Ñ¸¸ÀàµÄͬÃû·½·¨°ü×°µ½×ÓÀàÖÐÄØ£¿Õâ¾ÍÒªÓõ½wrapperº¯Êý¡£Ö®ËùÒÔ½Ðwrapper£¬¶ø²»ÊÇwrap£¬ÒòΪËü±Èwrap¸ü¼Ówrapper¡£±ÈÈçÏñExtÄÇÖÖÉî¶È¼Ì³ÐµÄ½á¹¹ÖУ¬Èç¹û¸¸ÀàûÓÐÕÒ×游£¬×æ¸¸Ã»Ó ......
ʹÓÃJavaScript¿ÉÒÔ½«Óû§µ¼ÏòÒ»¸öÌض¨µÄµØÖ·£¬²¢ÇÒ²»Í¬µÄ·½·¨»á¶Ôä¯ÀÀÆ÷µÄÀúÊ·¼Ç¼Óв»Í¬µÄÓ°Ïì¡£
ʵÀýJavaScript´úÂë
±¾Àý¶¨ÒåÁËÁ½¸öJavaScriptº¯Êý£¬¹¦Äܶ¼ÊÇÖض¨Ïòµ½Ê×Ò³£¬µ«ÊǵÚÒ»¸öº¯Êý²ÉÓõÄÊÇÖ±½Ó¸øhref¸³ÖµµÄ·½Ê½£¬µÚ¶þ¸öʹÓõÄÊÇreplace·½·¨¡£¾ßÌåÇë¿´ÏÂÃæµÄ´úÂ룺
<script type="text/javascript"> fun ......
ÔÚ×öB/SÏîÄ¿¿ª·¢Ê±¡£ÄÑÃâ»áÓöµ½ÍøÒ³´òÓ¡ÎÊÌ⣡
±¾ÈËÔÚÍøÂçÉÏËѼ¯ µÄһЩ×ÊÁϹ° ´ó¼ÒʹÓã¡yzitw.com ¡íÍøÂç½£¿Í→ ËѼ¯
¿ÉÒÔÓÃcss¿ØÖÆ£¬¿´ÃÏÀÏ´óдµÄ¡£
@media print
.a {display:block}
.b {display:hidden}
ºÃÏñÊÇÕâÑù¡£°ÑÄã²»Ïë´òÓ¡µÄ²¿·ÖclassÉèΪb
Ê×ÏÈÔÚÍøÒ³ÖÐÌí¼Ó£º
&n ......