PDA

View Full Version : Does onClick exist in DOM


pedrogar
08-04-2002, 10:45 PM
I want to assign an onClick action to a button, that will alter the state of an onClick command on a banner advert further down the page.
Managed to change the href of the banner by naming it 'egglink', and giving the button the DOM location -document.all.egglink.href="http://www.egg.com";
But cant figure out if its possible to change the onClick status of the banner using a similar DOM address.
.....am I being a bit vague??:confused:

boxer_1
08-05-2002, 01:49 AM
Hi, onClick does exsist in the DOM. See here (http://www.brainjar.com/dhtml/events/) for more information ;).

pedrogar
08-05-2002, 07:33 PM
Hi, thanks for the info. I can see that the answer is in there, just need a while for my simian brain to take it in:thumbsup: