View Full Version : Spawning multiple events
03-17-2003, 07:10 PM
I'm not sure how to go about this. I want to be able to cause two events when someone clicks on a link. For example, go to a new page AND spawn a pop-up. Or, go to a new page AND activate an audio file.
Here's the catch: I can't put the pop-up or audio code in the new page.
Thanks in advance. :thumbsup:
03-17-2003, 07:19 PM
<a href="" onclick="">blah</a>
i think you can use document.writein to not have the code on a new page.
its best to use writein, in a new window or frame.
03-17-2003, 07:53 PM
<A HREF="#" OnClick="dothis();dothat();">blah</A>
the # is a way of saying do nothing, its for a bookmark use normally but in this case it goes no where. the functions will be executed in the order there in.
03-17-2003, 08:12 PM
Originally posted by scroots
the # is a way of saying do nothing
But of course you wouldn't really do that would you .. obviously in practise you'd have a real HREF so that it's a normal link for non-javsacript browsers ;)
03-17-2003, 08:26 PM
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.