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

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -