, ,
, <q>, <samp>, <select>, <small>, <span>, <br>
<strong>, <sub>, <sup>, <table>, <tbody>, <td>, <textarea>, <tfoot>,
<th>, <thead>, <tr>, <tt>, <ul>, <var><p>
<strong></strong>支援該事件的 JavaScript 物件:</p>
<p>
<br>button, checkbox, fileUpload, layer, frame, password, </p>
radio, reset, submit, text, textarea, window<p>
<br>範例:在使用者離開輸入框時執行 JavaScript 程式碼:</p>
<div class="codetitle">
<span><a style="CURSOR: pointer" data="4541" class="copybut" id="copybut4541" onclick="doCopy('code4541')"><u></u>複製程式碼</a></span>
</div> 程式碼如下:<div class="codebody" id="code4541">
<br><br>
<br>
<script type="text/javascript"><br />
function upperCase()<br />
{<br />
var x=document.getElementById("fname").value<br />
document.getElementById("fname").value=x.toUpperCase()<br />
}<br />
</script><br>
<p>
<br>輸入您的姓名:</p>
<input type="text" id="fname" onblur="upperCase()"><p>
<br></p>
</div>
<p>
</p>希望本文所述對大家的javascript程式設計有所幫助。 </var>
</ul></tt>
</tr>
</thead>
</th>
</tfoot></textarea>
</td>
</tbody>
</table></sup></sub></strong></span></small></select></samp></q>