當(dāng)前位置:軟件學(xué)堂 > 資訊首頁 > 網(wǎng)絡(luò)編程 > DIV+CSS > onclick 事件

onclick 事件

2012/9/20 15:20:54作者:佚名來源:網(wǎng)絡(luò)

移動端

onclick 事件

定義:當(dāng)對象被點擊時觸發(fā)這個事件

語法:

onclick=”點擊時要執(zhí)行的腳本"

支持標(biāo)簽:

<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>

支持的JavaScript對象:

button, document, checkbox, link, radio, reset, submit 

 

標(biāo)簽: onclick  事件