当前位置:编程学习 > C#/ASP.NET >>

为什么转不过来啊?急用

我的JS如下:
windowOpen('MonthCopy.aspx?params='+params+'','292','180');
为什么就是转不到MonthCopy.aspx页面呢? --------------------编程问答-------------------- //单纯的跳转
Response.Write("<script>window.location.href='MonthCopy.aspx?params="+params+"'</script>");

//弹出新页面
 <script language="JavaScript">
            function opennewwin(url)
    {
         var opennewwin=window.open(url,"opennewwin","易做图=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=200,left=500,width=330,height=190'");
         opennewwin.focus();
         return false;
    }
</script>
<!--用法-->
<a  style="cursor:hand;" onclick="javascript:opennewwin('window.location.href='MonthCopy.aspx?params="+params+"');">点击测试</a> --------------------编程问答-------------------- URL="";
myleft=(screen.availWidth-500)/2;
window.open(URL,"read","height=400,width=550,status=1,易做图=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
或用window.location.href=""; --------------------编程问答--------------------
引用 1 楼 fanlose2 的回复:
//单纯的跳转
Response.Write(" <script>window.location.href='MonthCopy.aspx?params="+params+"' </script>");

//弹出新页面
<script language="JavaScript">
            function opennewwin(url)
    {
        var opennewwin=window.open(url,"opennewwin","易做图=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=200,left=500,width=330,height=190'");
        opennewwin.focus();
        return false;
    }
</script>
<!--用法-->
<a  style="cursor:hand;" onclick="javascript:opennewwin('window.location.href='MonthCopy.aspx?params="+params+"');">点击测试 </a>

Up
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,