啊?你在index.asp里把title设置为变量好了<title><%request.QueryString("Mytitle")%></title>然后url传值传过去var popupWin = window.open('index.asp?Mytitle=1', 'test', 'toolbar=yes,location=yes,directions=yes,status=yes,menubar=yes,scrollbar=yes,resizable=yes');

解决方案 »

  1.   

    先谢谢上面的朋友答复我!要注意一下:不可以对index.asp这个文件进行修改。
    所以也不能改为你说得这种形式
    <title><%request.QueryString("Mytitle")%></title>
      

  2.   

    我用 popupWin.title="newtitle"
    但是不行的。用法错了吗
      

  3.   

    我不知道,你到底要什么效果?是不是,这个页面可以直接打开?那你加个判断就可以了哈。<%
    '首先判断,是否url接到值了
    if request.QueryString("Mytitle") <>"" then
    '接值了
       Mytitle=request.QueryString("Mytitle")
    else
    '没有接值
       Mytitle="固定的内容"
    end if
    %><title><%=Mytitle%></title>
      

  4.   

    我用 popupWin.title="newtitle"
    但是不行的。用法错了吗
    没用过
      

  5.   

    var popupWin = window.open('index.asp', 'test', 'toolbar=yes,location=yes,directions=yes,status=yes,menubar=yes,scrollbar=yes,resizable=yes');再
    popupWin.document.write("<title>标题</title>");
      

  6.   


    popupWin.document.title="标题"
    不就行了吗?
    popupWin是window对象,并没有title属性
      

  7.   

    popupWin.document.title="";就这样就OK了啊
      

  8.   

    var popupWin = window.open('index.asp', 'test', 'toolbar=yes,location=yes,directions=yes,status=yes,menubar=yes,scrollbar=yes,resizable=yes');
    popupWin.document.title="hello";就可以啦