18.打印頁面
<div align="center"><a class=content href="javascript:doPrint();">打印本稿</a></div>

19.改變按鈕的圖片.
<style type="text/css">
<!--
.style3 { font-size: 12px; background: url(image/buttonbg1.gif); border: 0px; width: 60px; height: 22px}
.style4 { font-size: 12px; font-weight: bold; background: url(image/buttonbg2.gif); border: 0px 0; width:

 

60px; height: 22px}
-->
</style>
  本例的按鈕代碼如下:
<input type="submit" name="Submit2" value="提 交" onmouseover="this.className='style4'"

 

onmouseout="this.className='style3'" class="style3">


 

 

20.可以直接寫html語言
document.write("");

21.改變下拉框的顏色
<select name="classid"

onChange="changelocation(document.myform.classid.options[document.myform.classid.selectedIndex].value)"

 

size="1" style="color:#008080;font-size: 9pt">

22.轉(zhuǎn)至目標(biāo)URL
window.location="http://guoguo"

23.傳遞該object的form
UpdateSN('guoqiang99267',this.form)
function UpdateSN(strValue,strForm)
{
 strForm.SignInName.value = strValue;
 return false;
}
24.文字標(biāo)簽
<label for="AltName4"><input name="AltName" type="RADIO" tabindex="931"  id="AltName4"

 

>guoqiang99859</label>


25.layer2為組件的ID,可以控制組件是否可見
document.all.item('Layer2').style.display = "block";
document.all.item('Layer2').style.display = "none";//

 

26.將頁面加入favorite中
<script language=javascript>
<!--
function Addme(){
url = "http://your.site.address"; //你自己的主頁地址
title = "Your Site Name"; //你自己的主頁名稱
window.external.AddFavorite(url,title);
-->
</script>//