Adding to existing Events

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Adding to existing Events

Post by Gen-ik »

I'm trying to find a way of adding extra commands to an object event... for example if I had <body onload="setupPage()"> how would I go about adding more info to that via JavaScript?

I can do it easily enough with IE by using the object.attachEvent() but this doesn't work in NS.

Any ideas or pointers would be great :)
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

Cheers mate... I knew there had to be something around to do it on NS :)
Post Reply