<head>
<title>old title</title>
<style>
div
{
t:expression(this.ondblclick=function(){document.title='new title'})
}
</style>
</head><body>
<div id='d' style="background-color:red;width:200px;height:200px"></div>
</body>
<title>old title</title>
<style>
div
{
t:expression(this.ondblclick=function(){document.title='new title'})
}
</style>
</head><body>
<div id='d' style="background-color:red;width:200px;height:200px"></div>
</body>
//修改样式表文件里定义好的样式
<head>
<title></title>
<script>
var win=window.open('2.htm');
var i=window.setInterval("setTitle()",1000);
function setTitle()
{ //alert(win.window.readyState);
if(win.document.readyState=='complete')
{
win.document.title='New title';
window.clearInterval(i);
}
}
</script>
</head>