It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Button is null or not an object

Button is null or not an object

Postby selvaraj on Mon Mar 09, 2009 1:45 pm

Hi..

I am running with this problem through out the day...
my javascript code..

<script language="javascript">

document.onmousedown=disableclick;

var status="Right Click Disabled";

function disableclick(event)
{
if(event.button==2)
{
alert(status);
return false;
}
}
</script>

if I click on this page I always getting this error.. What could be the reason??
selvaraj
 
Posts: 1
Joined: Mon Mar 09, 2009 1:36 pm

Re: Button is null or not an object

Postby rangana on Wed Mar 11, 2009 5:00 am

It means that there is something wrong in either your script or your markup.

...and that is out of our control to be able to help you right now since you haven't showed us a part of your markup for us to be able to decipher something.

Please show us some of your markup.
User avatar
rangana
500+ Club
 
Posts: 935
Joined: Wed Feb 27, 2008 5:14 am
Location: Cebu City Philippines


Who is online

Users browsing this forum: No registered users and 8 guests