就是网页的标题,怎么读我这样读不行
function GoDel()
{
var tb = document.getElementById( "CheckBoxList1 ");
var d=document.getElementById( "div ");
//alert(tb.rows.length);
tb.deleteRow(tb.rows.length-1);
if(tb.rows.length==0)
{
d.style.display= "block ";
----------------------------------------------------------------------
alert(document.getElementById( "title ").innerText);
----------------------------------------------------------------------
}
}
------解决方案--------------------------------------------------------
不一定兼容的写法:alert(document.title);
如果我的回答能帮助你的话,请帮我点一下:http://www.vzhangmen.com增加个IP
------解决方案--------------------------------------------------------
alert(document.getElementById( "title ").innerText);
> > >
alert(document.title);
------解决方案--------------------------------------------------------
alert(document.getElementById( "title ").innerText);==>
直接用this.title
------解决方案--------------------------------------------------------
就用这个alert(document.title)