Results 1 to 2 of 2

Thread: JavaScript

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759

    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>

  2. #2
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    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
  •  



Click Here to Expand Forum to Full Width