现在做个鼠标右击,弹出菜单事件,页面上放两个DIV,然后
<div id="container" style="width: 1000px; height: 200px;border:1px solid #999; overflow:hidden;position:relative;" oncontextmenu="MouseRightClick(event)">这样写,火狐和IE都兼容,都能调用到MouseRightClick方法,但是我放到另外一个页面去,DIV是动态创建的,然后
div.oncontextmenu = new Function("MouseRightClick(event)");这样写,只有IE能行,火狐下根本不调用MouseRightClick方法,求高人指教,该怎么该才能都兼容呢?先谢谢了。。