我有一个表,一些JavaScriptFirefox的JavaScript的兼容性
<td nowrap="" style="background: none repeat scroll 0% 0% rgb(211, 211, 211);" onmouseout="this.style.background='#d3d3d3'; menu3.style.color='#000000'" onmouseover="this.style.background='#EE0000'; menu3.style.color='#ffffff'" onclick="javascript:validationMenu('010','006')">
<span id="menu3" class="bulle" name="menu3" style="color: rgb(0, 0, 0);">
Vue générale
</span>
</td>
我与的onclick功能validationMenu一个问题:
function validationMenu(menu,option) {
document.SCREEN.elements['l1_F010$NUOPTIA'].value = trim(option.substring(1,4)); document.SCREEN.elements['l1_F010$NUMENUA'].value = trim(menu); validateAndSubmit('ENTER');
}
由于我们使用的卷筒纸工具(ibm)document.screen被该工具用于映射iseries DDS屏幕
使用Internet Explorer它工作正常,但在Firefox中显示的警告控制台:
TypeError: document.SCREEN is undefined TypeError: window.event is undefined
你上哪儿去定义'document.SCREEN'? – robertc
尝试[一些背景阅读](http://www.quirksmode.org/js/introevents.html)。 – robertc
'window.screen'?我从来没有听说过'document.SCREEN' –