what is "return true"?

i was told that i need "return true"
with this rollover
but it seems to be working well...
do i really need it?
what does it do?

<A HREF="aa.html"
ONMOUSEOVER ="document.bgColor='#010470'" ;"
<img SRC="images/qalw.gif"
Who is Participating?
jbirkConnect With a Mentor Commented:
It's not necesary to return true when you are only changing comething like the bgColor or swapping an image, etc.  However if you want to change the window.status property (the status bar message) you need to return true in order to prevent the browser from dispolaying the url of the link in the status bar.  In this case you probably want the url to be displayed and thus should NOT return true.

asacuiAuthor Commented:
By returning true you tell the browser that you have handled the event (MouseOver) and that you do not want the browser to do what it usually does (displaying URL).

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.