[Javascript] Click on scrollbar ?

shawn_milochik at godivachoc.com shawn_milochik at godivachoc.com
Tue Jul 6 09:33:19 CDT 2004





Instead of 'name', maybe try 'id' or 'type'.  Or, maybe loop through the
elements in the document and compare with '=='.

(Untested.  I'm sure that someone else will reply if there is a better way
to do it.)

Shawn




                                                                           
             spindrift at oceanfr                                             
             ee.net                                                        
             Sent by:                                                   To 
             javascript-bounce         javascript at LaTech.edu               
             s at LaTech.edu                                               cc 
                                                                           
                                                                   Subject 
             07/06/2004 10:12          [Javascript] Click on scrollbar ?   
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
             javascript at LaTech                                             
                   .edu                                                    
                                                                           
                                                                           




document.onmousedown = butPress

function butPress() {
var temp = event.srcElement.name
}

How can I trap/identify when someone has clicked on a scrollbar?

temp just returns undefined.

Tim in Ireland.
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




**********************************************************************
This e-mail and any files transmitted with it may contain 
confidential information and is intended solely for use by 
the individual to whom it is addressed.  If you received
this e-mail in error, please notify the sender, do not 
disclose its contents to others and delete it from your 
system.

**********************************************************************




More information about the Javascript mailing list