custom onClick handler to the object. If the A tag has an id attribute,
then it's simple, just use document.getElementById(id_of_anchor) to get the
object. If it doesn't, then you'll have to us document.links (I don't know
how portable that is), or do a parse of the node tree and identify the link
from the mess, probably by checking the href or innerHTML property.
Cheers,
barneyb
> -----Original Message-----
> From: Casey C Cook [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 21, 2004 9:33 AM
> To: CF-Talk
> Subject: SOT: Javacript Onclick Question
>
> I would like to know if this is possible, I know very little about
> _javascript_, but if if someone could point me in the right
> direction I can
> do the research. Heres what Im trying to do.
>
> I have my main display page which calls a custom header. This custom
> header has an <a href> link that logs the user off when
> clicked. What I
> want to do now is to add a pop-up box that prompts the user
> to confirm
> that they are logging off. Heres the kicker, I cant modify
> the customer
> header, so how do I write _javascript_ from my main display
> page to add the
> pop-up box on the link in the custom header?
>
> Thanks for you help!
> Casey Cook
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

