DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Turning off onMouseOut event when onClick method executed  (Read 6,150 times)

h0meopathic

  • Participant
  • Joined in 2007
  • *
  • Posts: 24
Turning off onMouseOut event when onClick method executed
« on: October 12, 2008, 04:23 PM »
Code: (javascript)
if(onclick() == true)
    {
      onmouseout() = null;
    }


I was trying this code but I get an error "onClick not defined".
Any Ideas?
« Last Edit: October 16, 2008, 02:26 PM by h0meopathic »

aalift

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 3
Re: Turning off onMouseOut event when onClick method executed
« Reply #1 on: November 02, 2008, 07:22 AM »
hi
im no expert but i think it means you need this?
onclick="SomeJavaScriptCode"


Parameter Description
SomeJavaScriptCode Required. Specifies a JavaScript to be executed when the event occurs.

heres a good site
http://www.w3schools.com/jsref/jsref_onClick.asp

hope it helps

Original address: https://www.donationcoder.com/forum/index.php?topic=15318.0