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

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" C>
¼òµ¥Óʼþ
<a  href="[email=aaa@bbb.com?subject=ccc&body=xxxyyy]mailto:aaa@bbb.com?subject=ccc&body=xxxyyy[/email]">  
¿ìËÙתµ½Î»ÖÃ
obj.scrollIntoView(true)
ê
<a name="first">
<a href="#first">anchors</a>
ÍøÒ³´«µÝ²ÎÊý
location.search();
¿É±à¼­
obj.contenteditable=true
Ö´Ðв˵¥ÃüÁî
obj.execCommand
Ë«×Ö½Ú×Ö·û
/[^\x00-\xff]/
ºº×Ö
/[\


Ïà¹ØÎĵµ£º

ÕýÔò±í´ïʽ javascript ÑéÖ¤±íµ¥

дÏÂÒ»¸ö¹ØÓÚÓÃÕýÔò±í´ïʽÑéÖ¤±íµ¥µÄ´úÂ룬ÒÔºó¿ÉÒÔÓõ½¡£
function checkform(){
var null_regu = /^[ ]*$/;
var age_regu = /^[1-9][0-9]$/;
var tel_regu = /^[0-9]*(-){0,1}[0-9]{8,11}$/;
var email_regu=/^[\w]+[\w-\.]*@([\w]+\.)+[\w]+$/;
var qq_regu=/^(\d+){6,12}/;
if(new RegExp(null_regu ......

javascript¿´Ô´´úÂë

<HTML>
<HEAD>
<META http-equiv='Content-Type' content='text/html; charset=gb2312'>
<TITLE>Óð´Å¥ÏÔʾԴ´úÂë»òÕßjavascriptÀïÃæµÄÄÚÈÝ£¬ÓÐʱ»áÓÐ</TITLE>
</HEAD>
<BODY >
<script id=abc >
function dennisboys()
{
var i=0;
alert(document.documentElem ......

javascript ¿çÎĵµµ÷Óü¼Êõ

ÕâÊÇÒ»ÖÖºÜÓÐǰ;µÄ¼¼Êõ£¬¿ÉϧÉú²»·êʱ£¬IE¸Õ´ò¿åÍø¾°£¬»ðºüÓÖð³öÀ´ÁË¡£ÕâÖÖ¼¼ÊõÊÇÎÒÔÚÉè¼Æ³¬¼¶Êý×é¶ÔÏóʱ·¢Ïֵġ£ÓÉÓÚÖ±½Ó¼Ì³ÐÔ­ÉúÊý×éÎÊÌâ¶à£¬ÎÒÖ»ÓÐÓÃObjectÓëArrayµÄÔ­ÐÍ·½·¨¹¹½¨Ò»¸öÐÂÀà¡£²»ÓÃ˵£¬Ð§Âʲ»Ì«ÀíÏë¡£Ö±µ½ÎÒÒѰѳ¬¼¶Êý×éÕéÖÁÍêÃÀµÄ½ñÌ죬ÎÒ»¹ÔÚ²»¶ÏÑ°ÕÒеÄÌæ´ú·½°¸£¬ÓÚÊÇÎÒ¾ÍÏëµ½ÓÃÁíÒ»¸öÎĵµµÄÊý×é¶ÔÏóÀ ......

javascript eventʼþ½âÎö1 only handbook


event.srcElement Óëevent.target

 
Javascript event.srcElement
¸Ð¾õÕâ¸öͦºÃ£¬¿ÉÒÔ²¶»ñµ±Ç°Ê¼þ×÷ÓõĶÔÏó£¬Èçevent.srcElement.tagName¿ÉÒÔ²¶»ñ»î¶¯±ê¼ÇÃû³Æ¡£
×¢Òâ»ñÈ¡µÄ±ê¼Ç¶¼ÒÔ´óд±íʾ£¬Èç"TD","TR","A"µÈ¡£ËùÒÔ°Ñ¿´¹ýµÄһЩ³­ÏÂÀ´£¬²»¼ÇµÃµÄʱºòÔÙÀ´¿´¿´¡£
< ......

JavaScript ʼþ


WEB ±à³Ì - DHTML - ʼþ
onabort
µ±Í¼Æ¬¼ÓÔر»ÖжÏʱ´¥·¢µÄʼþ
onactivate
µ±¶ÔÏó³ÉΪ»îÐÔÔªËØʱ´¥·¢µÄʼþ
onafterprint
µ±ÍøÒ³´òÓ¡½áÊøʱ´¥·¢µÄʼþ
onafterupdate
µ±¶ÔÏóµÄÊý¾Ý±»³É¹¦ÐÞ¸ÄÖ®ºó¶ø´¥·¢µÄʼþ
onbeforeactivate
µ±¶ÔÏó½«Òª±»ÉèÖóɻԪËØ֮ǰ´¥·¢µÄʼþ
onbeforecopy
µ±ÍøÒ³±»¿½±´Ö®Ç°¶ø ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ