SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Link Script

  1. #1
    Ex-SitePointer silver trophy
    Patrick's Avatar
    Join Date
    Oct 2000
    Location
    Harbinger, NC, U.S.A.
    Posts
    4,126
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Link Script

    Is there a script out there that if you click on a link you can have that window follow a link as well as a popup window (to some other site) come up as well?

    Example.

    I click "Design" and I get my current window to go the the Design Site and the Popup Goes to the Portfolio. (I am not using it for this, lol, just an example.)

  2. #2
    1-800-JMULDER JMulder's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,745
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure you can, simply put the JAVAscript Code for the popup window in your <HEAD> . Then use this as a link:

    Code:
    <a href="designs.html" onClick="javascript:popUp('portfolio.html')">Designs</a>
    Change the word popUp to your function's name. I tried it out and it worked fine, hopefully it will for you too :)

    EDIT: Had to disable smilies, it showed one in the code..hehe

    EDIT #2: Somehow the vB CODE tag shows a space between the words java and script which obviously shouldn't be there.
    Last edited by JMulder; Feb 20, 2002 at 15:40.
    Jeroen Mulder

    w: www.jeroenmulder.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •