Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Intrinsic Events

Status
Not open for further replies.

Albion

IS-IT--Management
Aug 8, 2000
517
US
I see some code like this.

Code:
<SCRIPT language="javascript">
    
    function mouseOut(iButtonIdx) {
        Blah ... Blah
    }

    function setTimer() {
        Blah ... Blah
    }
</SCRIPT>

<BODY>
    <A HREF="blah.html" onmouseout="SetTimer();">
</BODY>

I understand that on a mouseOut for that Anchor it calls the function SetTimer(), then it calls the Intrinsic function mouseOut(). But where does iButtonIdx come from? Are there attributes sent over from the onmouseout in the Anchor? If there are, where can I get a list of what information is sent from the event in the HTML code to the function?

Thanks much.

-Albion
 
You are looking at Javascript there... not HTML.

The function definition for mouseOut() is providing the ability to pass a parameter into the function... and (if that parameter is supplied when the function is called) the value of the parameter will be assigned to the (local scope) variable called iButtonIdx.

If you want to follow up on this in more detail, probably best to post over in the Javascript forum.

Cheers,
Jeff
 
Thanks, I appreciate the help, I was under the impression that it was the Event in HTML that held the parameter.

Thanks Again
-Al
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top