I'm trying to change the <body> 's event oncontextmenu attributes, but
am having no luck at it.
I know I can do <body oncontextmenu="contextMenu(); return false;"> but
the thing is that I set's this attribute as soon as the page
loads......which I don't to happen....I don't want to the context menu
visible until the page is done loading, and within the window onLoad
event I have a vbscript subroutine that connects to a database to pull
some info into the html body....when the subroutine is done I want it
to set the oncontextmenu attribue for the body so that my custom
context menu will be shown. My context menu gives options like Email
Report, Print Report, Refresh Data, etc......but none of these
functions will work until the initial Onload subrotine is
finished.....so that's why I don't want the the custom context menu
shown at the beginning.
the script code I was trying to use for this is:
document.getElementById("body").setAttribute("onco ntextMenu","contextMenu();
return false;")