|
-
Jan 5th, 2002, 06:15 PM
#1
Thread Starter
Fanatic Member
JavaScript
Hi Everyone,
Is there any way to call two different javascripts to run at the same time when a hyperlink is clicked? I have tried this but it only executes the first javascript. This code works fine when there is a command button on the page, but I cannot get it to work for a hyperlink. I would appreciate any help. Thank you.
Code:
<a href="javascript:resizeTo(650, 580);javascript.popUp('http://www.testweb.com')">Show Test Web</a>
-
Jan 5th, 2002, 06:24 PM
#2
Fanatic Member
The second part of your code where it says javascript.popUp should be just popUp. Here is an example:
Code:
<a href="javascript:alert('Hello World'); alert('Hello Universe')">Say Hello</a>
Your code should look like this:
Code:
<a href="javascript:resizeTo(650, 580); popUp('http://www.testweb.com')">Show Test Web</a>
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|