javascriptС¼¼ÇÉ(ת)
ʼþÔ´¶ÔÏó
event.srcElement.tagName
event.srcElement.type
²¶»ñÊÍ·Å
event.srcElement.setCapture();
event.srcElement.releaseCapture();
ʼþ°´¼ü
event.keyCode
event.shiftKey
event.altKey
event.ctrlKey
ʼþ·µ»ØÖµ
event.returnValue
Êó±êλÖÃ
event.x
event.y
´°Ìå»î¶¯ÔªËØ
document.activeElement
°ó¶¨Ê¼þ
document.captureEvents(Event.KEYDOWN);
·ÃÎÊ´°ÌåÔªËØ
document.all("txt").focus();
document.all("txt").select();
´°ÌåÃüÁî
document.execCommand
´°ÌåCOOKIE
document.cookie
²Ëµ¥Ê¼þ
document.oncontextmenu
´´½¨ÔªËØ
document.createElement("SPAN");
¸ù¾ÝÊó±ê»ñµÃÔªËØ£º
document.elementfromPoint(event.x,event.y).tagName=="TD
document.elementfromPoint(event.x,event.y).appendChild(ms)
´°ÌåͼƬ
document.images[Ë÷Òý]
´°Ìåʼþ°ó¶¨
document.onmousedown=scrollwindow;
ÔªËØ
document.´°Ìå.elements[Ë÷Òý]
¶ÔÏó°ó¶¨Ê¼þ
document.all.xxx.detachEvent('onclick',a);
²å¼þÊýÄ¿
navigator.plugins
È¡±äÁ¿ÀàÐÍ
typeof($js_libpath) == "undefined"
ÏÂÀ¿ò
ÏÂÀ¿ò.options[Ë÷Òý]
ÏÂÀ¿ò.options.length
²éÕÒ¶ÔÏó
document.getElementsByName("r1");
document.getElementById(id);
¶¨Ê±
timer=setInterval('scrollwindow()',delay);
clearInterval(timer);
UNCODE±àÂë
escape() ,unescape
¸¸¶ÔÏó
obj.parentElement(dhtml)
obj.parentNode(dom)
½»»»±íµÄÐÐ
TableID.moveRow(2,1)
Ìæ»»CSS
document.all.csss.href = "a.css";
²¢ÅÅÏÔʾ
display:inline
Òþ²Ø½¹µã
hidefocus=true
¸ù¾Ý¿í¶È»»ÐÐ
style="word-break:break-all"
×Ô¶¯Ë¢ÐÂ
<meta HTTP-EQUIV="refresh" CONTENT="8;URL=http://c98.yeah.net">
¼òµ¥Óʼþ
<a href="mailto:aaa@bbb.com?subject=ccc&body=xxxyyy">
¿ìËÙתµ½Î»ÖÃ
obj.scrollIntoView(true)
ê
<a name="first">
<a href="#first">anchors</a> _fcksavedurl=""#first">anchors</a>"
ÍøÒ³´«µÝ²ÎÊý
location.search();
¿É±à¼
obj.contenteditable=true
Ö´Ðв˵¥ÃüÁî
obj.execCommand
Ë«×Ö½Ú×Ö·û
/[^\x00-\xff]/
ºº×Ö
/[\u4e00
Ïà¹ØÎĵµ£º
ÒÔÏÂÒÔ 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: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 ......
¶ÔÓÚÐí¶àÏëѧϰ JavaScript µÄÅóÓÑÀ´Ëµ£¬ÎÞÒÉÈçºÎÑ¡ÔñÈëÃŵÄÊé¼®ÊÇËûÃÇ×îÍ·ÌÛµÄÎÊÌ⣬»òÐíÒ²ÊÇËûÃÇһֱη¾å£¬ÉõÖÁ·ÅÆúѧϰ JavaScript µÄÀíÓÉ¡£
ÔÚ JavaScript ·½Ã棬×Ô¼º²»ÊÇʲôר¼Ò£¬Ò²²»ÊÇʲô¸ßÊÖ£¬µ«×Ô¼ºÒ»Â·×ßÀ´£¬JavaScript ´ÓÃÔãµ½ÈëµÀ£¬¶ÔÓÚ JavaScript Êé¼®µÄÈÏʶ»òÐí»¹ÓÐЩ½è¼ø¼ÛÖµ¡£
ÈëÃÅÍƼöÊ×Ñ¡Êé¼®£º¡ ......
Javascriptº¯Êý°üº¬Ò»¸öαÊý×飨pseudo-array£©£¬¸ÃÊý×é°üº¬ËùÓд«Èë²ÎÊý£¬ÎÒÃDz»ÄÜÐÞ¸ÄËü£¬µ«¿ÉÒÔ·ÃÎÊÆäÖеijÉÔ±£¬¸ÃÊý×éÒ²¾ßÓÐlengthÊôÐÔ¡£
º¯ÊýÖØÔØÒÀÀµÓÚÅжϴ«Èë²ÎÊý¸öÊýºÍÀàÐ͵ÄÄÜÁ¦¡£
º¯ÊýÖØÔصÄÀý×Ó£º
<html>
<head>
<mce:script type="text/javascript"><!--
function sendMessage(msg ......