Page 1 of 1

Putting multiple actions into a onMouseover tag

Posted: Wed Feb 26, 2003 8:50 pm
by nigma
Hey once again I have a javascript tag. I have almost found a forum just for this, so please don't chew me out for posting this on php forum.

Here is what I want to do, I want to make a button that when the mouse moves over it it will change the bgcolor to red and do a window.status='test'; return true"

Thanks a lot for all help provided.

Posted: Thu Feb 27, 2003 2:32 am
by volka
  • window.status='test';
  • return true;
that already are two statements, you already know how to do it ;)
try

Code: Select all

onMouseOver="this.style.backgroundColor='red'; window.status='test'; return true;"

Posted: Thu Feb 27, 2003 3:55 am
by twigletmac
You won't get chewed out but the message will be moved to the Client Side forum because that is where it belongs.

Mac

Posted: Thu Feb 27, 2003 2:07 pm
by nigma
Thank you very much for the help. From now on I will post these questions there.

Thanks again for the help and advice.