<Script>
var title;
title="哈哈哈";
window.showModelessDialog("index.asp?title="+title)
</Script>在index.asp中加入
<%=Request.QueryString("title")%>

解决方案 »

  1.   

    可是title这个的值也是本页的变量,我这样写不行:
    要带的变量是本页aaa
    window.showModelessDialog('index.asp?title=<%=Request.QueryString("aaa")%>')
      

  2.   

    其实我用的是PHP,所以不知道上面有没有表达错误:
    在php中我这样写:
    要传的是本页的变量$aaa
    window.showModelessDialog('index.php?title=<? echo $aaa;?>')在index.php中 <?echo $title;?> 没结果。