如何獲得javascript各種對象(可當參考用)

來源:互聯網
上載者:User
javascript|參考|對象

將下面代碼拷貝到一個HTM頁面即可,代碼如下:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>JAVASCRIPT對象</title>
<style>
<!--
body       { font-family: Verdana; font-size: 11px }
th         { font-family: Verdana; font-size: 11px;padding:3px;color:#FFFFFF;background-color:#999999;}
td         { font-family: Verdana; font-size: 11px;padding:3px;background-color:#EFEFEF;}
-->
</style>
</head>
<BODY style="overflow:auto;" topmargin=2 bgcolor=buttonface>
<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RealPlayer width=0 height=0></OBJECT>
<button >document</button>
<button >navigator</button>
<button >event</button>
<button >Window</button>
<button >location</button>
<button >RealPlayer</button>
<A HREF="http://www.webjx.com/" title="連結文字" >連結文字</A>
<IMG onclick=get(this) SRC="C:/Documents and Settings/Administrator.CHANGEGATE/案頭/Data_1.gif" style="width:10">
<INPUT TYPE="submit" onclick=get(this)>
<script defer>
function get(obj)
{
 var Str="<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#000000\">"
 for(var i in obj)
 //if (obj[i]!=null&obj[i]!="[object]")
 Str+="<tr><td>"+i+"</td><td>"+obj[i]+" </td></tr>\n"
 Str+="</table>"
 showzone.innerHTML = (Str)
}
</script>
<br>
<div id=showzone></div>
</BODY>
</HTML>



相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.