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

JAVASCRIPT·ÃÎʸ¸´°¿ÚµÄ±äÁ¿»ò·½·¨


AA.HTM
-------------------------------------
<!--
showModalDialogº¯ÊýµÄʹÓà  (ת)     
±¾·¶Àý¿ÉÒÔʵÏÖµ¯³öÒ»¸öģ̬´°¿Ú£¬²¢ÑÝʾÁËÁ½ÖÖ½ÓÊպʹ«µÝ²ÎÊýµÄ·½·¨£¬Í¬Ê±¿ÉÒÔ½ÓÊÜģ̬´°¿Ú·µ»ØµÄ¶à¸ö±äÁ¿   
-->
<html>     
    
<head>     
<meta   http-equiv="Content-Type" content="text/html; charset=gb2312">     
<title>Ö÷½çÃæ</title>     
</head>     
    
<body>     
<form id="getForm"> »Ø´«Öµ£º
<input   type="text"   id="getData"   readOnly>   
<input   type="text"   id="getData1" readOnly>     
<input   type="text"   id="getData2" readOnly> 
</form>     
<input   type="button"   value="´ò¿ªÐ´°¿Ú1"   onClick="openWin1()">     
<input   type="button"   value="´ò¿ªÐ´°¿Ú2"   onClick="openWin2()">     
<script   language="JavaScript">          
function   openWin1()           
{                   
      var   srcFile   =   "BB.htm";         //д°¿ÚµÄÎĵµÃû³Æ                   
      var   winFeatures   =   "dia


Ïà¹ØÎĵµ£º

¼¸¸ö³£ÓÃJAVASCRIPTʹÓ÷½·¨


¢Ù     JavaScriptÌí¼ÓλÖã¬Ìí¼ÓλÖôíÎ󣬻áÒýÆðJavaScript´úÂëÎÞ·¨Ö´ÐеÄÎÊÌâ¡£
<head runat="server">
<script type='text/javascript' language="javascript">
<!—
//“Ìí¼ÓÄÚÈÝ”
//-->
</script>
</head>
 
¢Ú ÒýÓÃËû´¦µÄ½Å±¾ ......

JavaScript FAQ£¨¶þÊ®ËÄ£©

¶þʮһ¡¢ÉùÒô
1¡¢¿ÉÒÔ²¥·ÅÉùÒôµÄä¯ÀÀÆ÷£¨Audio-enabled Browsers£©
Q£ºÊ²Ã´¿ÉÒÔä¯ÀÀÆ÷¿ÉÒÔÖ´Ðв¥·ÅÉùÒôµÄ½Å±¾£¿
A£ºÈç¹ûÔÚÉùÒô²¥·ÅÃèÊöµÄ¼¼Êõ¿ÉÒÔÔÚMiscrosoft Internet Explorer 4.0¼°Æä¸üа汾Öй¤×÷£¬ÄÇôͬÑù¿ÉÒÔÔÚNetscape Navigator 3.0¼°Æä¸üа汾Öй¤×÷¡£ÒªÔÚInternet ExplorerÖв¥·ÅÉùÒô£¬ÔÚ4.0ÒÔ¼°ºóÀ´°æ±¾Ö ......

javascript DateÈÕÆÚ¶ÔÏó (ת)

´´½¨Ò»¸öÈÕÆÚ¶ÔÏó£º
var objDate=new Date([arguments list]);
²ÎÊýÐÎʽÓÐÒÔÏ£µÖÖ£º
   new Date("month dd,yyyy hh:mm:ss");
   new  Date("month dd,yyyy");
   new  Date(yyyy,mth,dd,hh,mm,ss);
   new Date(yyyy,mth,dd);
   new Date(ms); ......

javascript:void(0)

  javascript:void(0)
   ¸Õ¿ªÊ¼¶¼²»ÖªµÀÊÇɶÒâ˼
  Æäʵ¾ÍÊÇÒ»¸öËÀÁ´½Ó£¬Ê²Ã´ÊÂÇé¶¼²»×ö¡£
  <a id="link_${user.account}" href="javascript:void(0);" onclick="changSubmit();" style="cursor:pointer;height:25px;width:60px;margin-top:10px;">·¢ËÍemail</a>
  Õâ¾ä ......

javascript refresh page ¼¸ÖÖÒ³ÃæË¢Ðµķ½·¨

JavascriptË¢ÐÂÒ³ÃæµÄ¼¸ÖÖ·½·¨£º
1    history.go(0)
2    location.reload()
3    location=location
4    location.assign(location)
5    document.execCommand('Refresh')
6    window.navigate(location)
7& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ