View Single Post
  #4 (permalink)  
Old April 27th, 2004, 01:53 PM
Snib Snib is offline
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Gayatri,

It is possible to assign the function to an event. Just include the function posted by Marlon and assign it to an event like this:

document.onclick = disable;

Let me know if there is a different kind of condition you mean.

HTH,

Snib

<><