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

javascriptµÄwindows.open²ÎÊýѧϰ


<SCRIPT LANGUAGE="javascript">
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
file://д/³ÉÒ»ÐÐ
-->
</SCRIPT>
²ÎÊý½âÊÍ£º
<SCRIPT LANGUAGE="javascript"> js½Å±¾¿ªÊ¼£»
window.open µ¯³öд°¿ÚµÄÃüÁ
'page.html' µ¯³ö´°¿ÚµÄÎļþÃû£»
'newwindow' µ¯³ö´°¿ÚµÄÃû×Ö£¨²»ÊÇÎļþÃû£©£¬·Ç±ØÐ룬¿ÉÓÿÕ''´úÌæ£»
height=100 ´°¿Ú¸ß¶È£»
width=400 ´°¿Ú¿í¶È£»
top=0 ´°¿Ú¾àÀëÆÁÄ»ÉÏ·½µÄÏóËØÖµ£»
left=0 ´°¿Ú¾àÀëÆÁÄ»×ó²àµÄÏóËØÖµ£»
toolbar=no ÊÇ·ñÏÔʾ¹¤¾ßÀ¸£¬yesΪÏÔʾ£»
menubar£¬scrollbars ±íʾ²Ëµ¥À¸ºÍ¹ö¶¯À¸¡£
resizable=no ÊÇ·ñÔÊÐí¸Ä±ä´°¿Ú´óС£¬yesΪÔÊÐí£»
location=no ÊÇ·ñÏÔʾµØÖ·À¸£¬yesΪÔÊÐí£»
status=no ÊÇ·ñÏÔʾ״̬À¸ÄÚµÄÐÅÏ¢£¨Í¨³£ÊÇÎļþÒѾ­´ò¿ª£©£¬yesΪÔÊÐí£»
</SCRIPT>


Ïà¹ØÎĵµ£º

³£ÓõÄjavascriptÓï¾ä¼¯


×î¶ÌµÄÍ϶¯´úÂë
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script l ......

IEºÍFirefoxÔÚJavaScriptÓ¦ÓÃÖеļæÈÝÐÔ

1.document.formName.item("itemName") ÎÊÌâ
˵ Ã÷:IEÏÂ,¿ÉÒÔʹÓÃdocument.formName.item("itemName")»òdocument.formName.elements ["elementName"];FirefoxÏÂ,Ö»ÄÜʹÓÃdocument.formName.elements["elementName"].
½â¾ö·½·¨:ͳһʹÓÃdocument.formName.elements["elementName"].
2.¼¯ºÏÀà¶ÔÏóÎÊÌâ
˵Ã÷:IEÏÂ,¿ÉÒÔ ......

ÓÃJavaScriptÒþ²Ø¿Ø¼þµÄ·½·¨£¨×ª£©

ÓÃJavaScriptÒþ²Ø¿Ø¼þµÄ·½·¨ÓÐÁ½ÖÖ£¬·Ö±ðÊÇͨ¹ýÉèÖÿؼþµÄstyleµÄ“display”ºÍ“visibility”ÊôÐÔ¡£µ±style.display="block"»òstyle.visibility="visible"ʱ¿Ø¼þ»ò¼û£¬µ±style.display = "none"»òstyle.visibility = "hidden"ʱ¿Ø¼þ²»¿É¼û¡£²»Í¬µÄÊÇ“display”²»µ«Òþ²Ø¿Ø¼þ£¬¶øÇÒ±»Òþ²ØµÄ¿ ......

JavaScript µÄ¼Ì³Ð»úÖÆ

      ¼Ì³Ð»úÖÆ£¬Ëµµ½¼Ì³Ð£¬¾ÍÒªÏëµ½´Ó»ùÀ࿪ʼ£¬µ«ÊÇJavaScriptÖеÄÀàÓÐÁ½´óÀࣺһ£¬ÄÚǶµÄ£»¶þ£¬Óû§×Ô¶¨Ò壻һ°ãǰÕß²»»á±»ÓÃÀ´×ö»ùÀ࣬ԭÒòÊÇΪÁ˱£ÕÏjsµÄ°²È«¡£µ«ÊÇÎÒÃÇ¿ÉÒÔͨ¹ýprototypeÀ´¶Ô»ùÀà½øÐÐÀ©³ä£¬Ôö¼ÓÎÒÃÇÏëÒªµÄÊôÐԺͷ½·¨¡£ÒÔÏÂÊÇ×Ô¼º¶Ô¼Ì³ÐµÄ¼¸ÖÖ·½Ê½µÄÀí½â¡£
1>  ¶ÔÏó ......

javascriptʵÏּ̳еÄÁ½ÖÖ·½·¨

(Ò»)¶ÔÏóð³ä
function A(name){
    this.name = name;
    this.sayHello = function(){alert(this.name+” say Hello!”);};
}
function B(name,id){
    this.temp = A;
    this.temp(name);      &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ