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

javascript¼ì²âä¯ÀÀÆ÷°æ±¾

1  JavaScript¼ì²âä¯ÀÀÆ÷°æ±¾ ʹÓà JavaScript ¼ì²â¹ØÓÚ·ÃÎÊÕßµÄä¯ÀÀÆ÷Ãû³Æ¼°Æä°æ±¾¡£ <html>
<body>
<script type="text/javascript">
var browser=navigator.appName
var b_version=navigator.appVersion
var version=parseFloat(b_version)
document.write("ä¯ÀÀÆ÷Ãû³Æ£º"+ browser)
document.write("<br />")
document.write("ä¯ÀÀÆ÷°æ±¾£º"+ version)
</script>
</body>
</html>



2  ¼ì²âä¯ÀÀÆ÷µÄ¸ü¶àÐÅÏ¢

ʹÓà JavaScript ¼ì²â¹ØÓÚ·ÃÎÊÕßä¯ÀÀÆ÷µÄ¸ü¶àÐÅÏ¢¡£




<html>
<body>
<script type="text/javascript">
document.write("<p>ä¯ÀÀÆ÷£º")
document.write(navigator.appName + "</p>")
document.write("<p>ä¯ÀÀÆ÷°æ±¾£º")
document.write(navigator.appVersion + "</p>")
document.write("<p>´úÂ룺")
document.write(navigator.appCodeName + "</p>")
document.write("<p>ƽ̨£º")
document.write(navigator.platform + "</p>")
document.write("<p>Cookies ÆôÓãº")
document.write(navigator.cookieEnabled + "</p>")
document.write("<p>ä¯ÀÀÆ÷µÄÓû§´úÀí±¨Í·£º")
document.write(navigator.userAgent + "</p>")
</script>
</body>
</html>









Ïà¹ØÎĵµ£º

JavaScript½Ì³Ì ´ÓÈëÃŵ½¾«Í¨

JavaScriptÊÇÓÉNetscape¹«Ë¾¿ª·¢²¢ËæNavigatorµ¼º½ÕßÒ»Æð·¢²¼µÄ¡¢½éÓÚJava
ÓëHTMLÖ®¼ä¡¢»ùÓÚ¶ÔÏóʼþÇý¶¯µÄ±à³ÌÓïÑÔ£¬ÕýÈÕÒæÊܵ½È«ÇòµÄ¹Ø×¢¡£ÒòËüµÄ¿ª·¢»·¾³¼òµ¥£¬²»ÐèÒªJava±àÒëÆ÷£¬¶øÊÇÖ±½ÓÔËÐÐÔÚWebä¯ÀÀÆ÷ÖУ¬¶øÒò±¶
ÊÜWebÉè¼ÆÕßµÄËù°®¡£
ÕâÒ»Ì×JavaScript½Ì³Ì·Ö¾Å¸öÕ½ڴÓʲôÊÇJavaScript¡¢JavaScriptµÄ¼òµ¥Ó¦ÓÃÒ»Ö ......

javascriptË«ÒýºÅתÒå

http://www.cnblogs.com/yzx99/archive/2008/08/08/1263416.html
µ¥ÒýºÅ,Ë«ÒýºÅ,javascript,HTML,תÒå×Ö·û
ÔÚÒ»¸öÍøÒ³Öеİ´Å¥£¬Ð´onclickʼþµÄ´¦Àí´úÂ룬²»Ð¡ÐÄд³ÉÈçÏ£º
<input value="Test" type="button" onclick="alert(""OK"");" />
IEÌáʾ³ö´íºó£¬ÔÙÂþ²»¾­ÐĵظÄΪ£º
<input value="Test" type="bu ......

¹ØÓÚjavascriptÅжÏÎļþ´óС

<script type="text/javascript">  
function getFileSize(filePath) {  
   var image=new Image();  
   image.dynsrc=filePath;  
   alert(image.fileSize);  
}  
</script> &nbs ......

ÓÃjavascript¿ØÖÆ¿ò¼ÜµÄsrcÊôÐÔ

<input   type=button   onclick="aaa();"   value="È·¶¨">  
  <iframe   name="frame1">  
  <script   language=javascript>  
  function   aaa()  
  {  
  docume ......

javascript ÖеÄinnerHTMLµÄÓ÷¨

javascriptÖÐinnerHtmlÓ÷¨
2009-04-21 22:52
<html>
<head>
<script language="javascript">
function Test(){
       var str="";
       str+="Hello,";
       str+="This ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ