我的页面中有一个连接:
1<a href="#" onclick="window.open("aa.pdf","myname","location=no,resizable=yes,menubar=no,status=no,toolbar=no");'">press</a>
。点击后,新开启的窗口,它的标题栏的名字就是aa.pdf这个文件的IP地址。我不想让这个IP地址在窗口的标题拦中显示,而是从新窗口打开时就显示myName,请问该怎么写啊?谢谢!!
---------------------------------------------------------------
使用iframe将aa.pdf做到一个网页上,并对该网页设置title
---------------------------------------------------------------
1<html>
2<head>
3<meta content="Microsoft Visual Studio 6.0" name="GENERATOR"/>
4<script language="javascript">
5<!--
6function winopen(filepath){
7pop=window.open("");
8pop.document.write('<html><head></head><frameset cols="0,*" frameborder=0><frame name=top><frame name=main></frameset></html>');
9pop.document.frames.main.location.href=filepath
10pop.document.title="test"
11}
12//-->
13</script>
14</head>
15<body>
16<a href="#" onclick="winopen('01.pdf')">test</a>
17</body>
18</html>