Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-04-2002, 09:45 PM   PM User | #1
pedrogar
New to the CF scene

 
Join Date: Aug 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
pedrogar is an unknown quantity at this point
Does onClick exist in DOM

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??
pedrogar is offline   Reply With Quote
Old 08-05-2002, 12:49 AM   PM User | #2
boxer_1
Regular Coder

 
Join Date: May 2002
Location: Maine, USA
Posts: 574
Thanks: 0
Thanked 0 Times in 0 Posts
boxer_1 is an unknown quantity at this point
Hi, onClick does exsist in the DOM. See here for more information .
__________________
boxer_1
CodingForums Moderator
"How did a fool and his money get together in the first place?"
boxer_1 is offline   Reply With Quote
Old 08-05-2002, 06:33 PM   PM User | #3
pedrogar
New to the CF scene

 
Join Date: Aug 2002
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
pedrogar is an unknown quantity at this point
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
pedrogar is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:32 AM.


Advertisement
Log in to turn off these ads.