啊?你在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');
解决方案 »
- jquery 赛选问题
- JS传递参数
- 如何判断整个火狐浏览器是否关闭(用onbeforeunload不生效)
- jsp checkboxlist 问题 急 !!!!
- 一个简单的javascript的问题
- javascript 加载xml文件,在Chrome下不成功,求助!
- javascript 怎样获取中文asc码?
- 请教一个JS的问题
- Windows Opened by Script Lose Authentication or Session
- 使用jquery弹出模态窗口,如何禁用底层的click事件?
- 如何使列表框中的项目能上下移动,移至最前,移至最后?
- JAVASCRIPT如何取得select里的显示值(不是value)
所以也不能改为你说得这种形式
<title><%request.QueryString("Mytitle")%></title>
但是不行的。用法错了吗
'首先判断,是否url接到值了
if request.QueryString("Mytitle") <>"" then
'接值了
Mytitle=request.QueryString("Mytitle")
else
'没有接值
Mytitle="固定的内容"
end if
%><title><%=Mytitle%></title>
但是不行的。用法错了吗
没用过
popupWin.document.write("<title>标题</title>");
popupWin.document.title="标题"
不就行了吗?
popupWin是window对象,并没有title属性
popupWin.document.title="hello";就可以啦