弹出页面的提示框,可控制位置

<script type="text/javascript">
function win(thisurl){
alert(1)
//window.location = thisurl;
window.open(thisurl, "弹出页面", "width=470,height=470,scrollbars=yes,resizable=no")
}
</script>

<form action="" name="form1" method="post" >
    网址 ; <select name="url" onchange="win(this.value)">
    <option value="#">请选择要选择的站点</option>
    <option value="http://www.baidu.com">百度</option>
    <option value="http://www.qq.com">qq</option>
    <option value="script_eentform_01.html">event-03</option>
    </select>
    <input type="button" value="打开" onclick="wi('script_eentform_01.html')"/>
</form>

注意:如果url为 :127.0.0.1时 则不能正常显示跳转后的页面,需为:local和ost:指向。

原文地址:https://www.cnblogs.com/softmans/p/3481186.html