<input type="button" onclick="window.location = 'http://www.123.com/' +document.getElementById('DiyPage').value" value="转到"/> 你上面的写法是转到www.123.com目录

解决方案 »

  1.   

    就把那两句存成html,打开,就有安全提示
      

  2.   

    页面代码:<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.0   Transitional//EN">   <HTML>
    <input type="text" id="DiyPage" name="DiyPage" size="15" /> 
    <input type="button" onclick="window.location = '?topage=' +document.getElementById('DiyPage').value" value="转到"/>
    </HTML>
      

  3.   


    js的提示吧,放到iis下就不会了