提示:您可以先修改部分代碼再運行
<html><head><title>按鈕定製開啟視窗</title><style type="text/css"><!--body { font-family: "宋體"; font-size: 9pt; margin-top: 0px; margin-left: 0px; margin-right: 0px}A { COLOR: black; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: none } A:hover { COLOR: red; FONT-SIZE: 9pt; FONT-WEIGHT: 400; TEXT-DECORATION: underline }a:active { font: 9pt "宋體"; cursor: hand; color: #FF0033 }--></style><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><body><br><br><center><font color=red face="隸書" size=6>按鈕定製開啟視窗</font></center><br><br><center><table border=5 bordercolor=blue borderlight=green><tr><td align=center><font size=3 color=red face="Arial, Helvetica, sans-serif"><strong>下面框中為指令碼顯示區,開啟視窗的大小,方位均可調節</strong></font></td></tr><tr><td align=center> <input type="button" value="SOHU" onClick="window.open('http://www.sohu.com', 'Sample', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=yes,width=490,height=320,left=0,top=0')" name="Input"></td></tr></table></center><br><br><center> <SCRIPT LANGUAGE="JavaScript"><!-- hidefunction goHist(a) { history.go(a);}//--></script></center><br><br></body></html>
提示:您可以先修改部分代碼再運行