var sUrl="test.htm";document.write('转到:<input type=text id=Page size=3 maxlength=10 value="3">');
document.write('<input type=button value=Go name=Go onclick="if(document.all[\'Page\'].value>0){window.location=\''+sUrl+'?page='+document.all['Page'].value+'\'}">');
document.write('<input type=button value=Go name=Go onclick="if(document.all[\'Page\'].value>0){window.location=\''+sUrl+'?page='+document.all['Page'].value+'\'}">');
document.write('<input type=button value=Go name=Go onclick="if(document.all[\'Page\'].value>0){window.location=\''+sUrl+'?page=\'+document.all[\'Page\'].value;}">');
最后还是THANK 一下楼上的。