首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

js有关问题function document.onclick

2013-09-14 
js问题function document.onclickjs问题function document.onclickfunction document.onclick(){with(wind

js问题function document.onclick
js问题function document.onclick
function document.onclick() 

with(window.event)
{
if (srcElement != outObject && srcElement != outButton)
closeLayer();
}
}
它要是放到jsp等里面没有问题,但是放到js文件里面被引用就有问题,应该该个形式,但是作用相通,谢谢.

在js里改成这样就可以了:
document.onclick=function(){

热点排行
Bad Request.