how to change dynamically 'oncontextmenu' property of <body>?

L

Luc

Hi,

in the aspx file, there is following code:
<body oncontextmenu="return false" id="bod1" runat="server">

Now i want to change it dynamically (vb.net)
I typied this: bod1.
hoping the property 'oncontextmenu' would appear behind the dot but it didn't.

Any idea how to do that?
Thanks
Luc
 
A

Andrew Morton

in the aspx file, there is following code:
<body oncontextmenu="return false" id="bod1" runat="server">

Now i want to change it dynamically (vb.net)
I typied this: bod1.
hoping the property 'oncontextmenu' would appear behind the dot but it
didn't.

Any idea how to do that?

bod1.Attributes("oncontextmenu")="whatever"

Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top