javascript - js function not working on IE8 -


i have div , on mouseover show ice:menupop function:

function firecontextmenu(element, event) {    if (element.getattribute('oncontextmenu')) {       element.oncontextmenu = new function ('event', element.getattribute('oncontextmenu'));       element.oncontextmenu(event);    } } 

calling like:

onmouseover="firecontextmenu(this, event);" 

on chrome working perfect on ie not appears. suppose it's wrong in js or ie8 not support hover of div?

solved.

no longer use js function use directly value of oncontextmenu.

for case:

onmouseover="ice.menu.contextmenupopup(event, 'frmmainmenu:menupopupcbm_sub', 'frmmainmenu:divmenupopupcbm');return false;" 

Comments

Popular posts from this blog

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -