function test()
{
var newwin = window.open("jjj.doc");
newwin.document.title="你要的窗口名";
}
<a href="javascript:void(0)" onclick='test()'>dd</a>
{
var newwin = window.open("jjj.doc");
newwin.document.title="你要的窗口名";
}
<a href="javascript:void(0)" onclick='test()'>dd</a>
{
var newwin = window.open("jjj.doc");
newwin.document.title="新窗口titlebar";
}
<a href="javascript:void(0)" onclick='test()'>dd</a>
其中"意向发送"就是title内容
function test()
{
var newwin = window.open("jjj.doc");
newwin.document.title="新窗口titlebar";
}
放到<script></script>里
显示的还是窗口默认的值http://localhost:8080/examples/jsp/test/jjj.doc
而不是“新窗口titlebar“