JavaScript Óï·¨¼¯½õ
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 x
Ïà¹ØÎĵµ£º
<html>
<head>
<title>javascriptʵÏÖÁÄÌì´°¿Ú¹ö¶¯Ìõ×ÜÔÚ×îÏÂÃæµÄ·½·¨</title>
<script language="javascript">
function addMessage(message){
var chatArea=document.getElementById("chatArea");
&n ......
jsÑéÖ¤±íµ¥´óÈ«
1. ³¤¶ÈÏÞÖÆ
<script>
function test()
{
if(document.a.b.value.length>50)
{
alert("²»Äܳ¬¹ý50¸ö×Ö·û£¡");
document.a.b.focus();
return false;
}
}
</script>
<form name=a onsubmit="return test()">
<textarea name="b" cols="40" wrap="VIRTUAL" rows="6"&g ......
»ù±¾ÉÏÿ¸ö¿â¶¼ÓÐÕⶫÎ÷£¬ÒòΪÈç¹ûÒª¶ÔÒ³ÃæÉϵÄÔªËؽøÐвÙ×÷£¬ÎÒÃDZØÐëµÈµ½Ò³Ãæ¼ÓÔØÁËÕâ¸öÔªËزÅÐУ¬·ñÔò»á±¨´í£¬µ«ÊÇÎÒÃǺÜÄÜÅж¨Ä³¸öÔªËØÊÇ·ñÒѼÓÔØ£¬µ«ÎÒÃÇ¿ÉÒÔÅж¨Ò³ÃæÊÇ·ñ¼ÓÔØ£¬Õâ¾ÍÊÇÎÒÃǾ³£°Ñ´úÂë·Åµ½window.onload = function(){}Ö®ÖеÄÔµÓÉ¡£µ«window.onloadʼþÊÇ´ýµ½Ò³ÃæÉϵÄËùÓÐ×ÊÔ´±»¼ÓÔزż¤»î£¬Èç¹ûÒ³ÃæÉÏÓ ......
document Îĵ²¶ÔÏó - JavaScript½Å±¾ÓïÑÔÃèÊö
---------------------------------------------------------------------
×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд
·ñÔò»áÌáʾÄãÒ»¸ö´íÎóÐÅÏ¢ "ÒýÓõÄÔªËØΪ¿Õ»òÕß²»ÊǶÔÏó"
------------------------------------------------------ ......