急急急,请问javascript对象的问题?

来源:百度知道 编辑:UC知道 时间:2024/06/25 08:57:43
急急急,请问javascript对象的问题?

支持该onclick事件的 HTML 标签:
<a>, <address>, <area>, <b>, <bdo>, <big>, <blockquote>, <body>, <button>,
<caption>, <cite>, <code>, <dd>, <dfn>, <div>, <dl>, <dt>, <em>, <fieldset>,
<form>, <h1> to <h6>, <hr>, <i>, <img>, <input>, <kbd>, <label>, <legend>,
<li>, <map>, <object>, <ol>, <p>, <pre>, <samp>, <select>, <small>, <span>,
<strong>, <sub>, <sup>, <table>, <tbody>, <td>, <textarea>, <tfoot>, <th>,
<thead>, <tr>, <tt>, <ul>, <var>

支持该onclick事件的 JavaScript 对象:
button, document, checkbox, link, radio, reset, submit

W3C-school上说,可以在onclick事件中使用这些javascript对象,

我想请问一下比如在<

<a href="http://www.163.com" onclick="yourfunction()">去</a>

<script>
<!-
function yourfunction(){
//do something

}
-->
</script>

概念 完全混淆
好好补补 基本知识吧,

JavaScript对象,是指函数的实例化产生的对象。
按钮、复选框、链接……这些都不是javascript对象哦~