SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Jujubee's Avatar
    Join Date
    Mar 2001
    Location
    Canada
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey guys,

    I'm wondering if it's possible to have a location link and layer function assigned to a link at the same time. I can't get this to work:

    <a href="http://www.domain.com" onClick="return layershow()">CLICKHERE</a>

    I want to open the page specified by the href and call the layershow function at the same time. The above code runs the function fine, but seems to ignore the href.

    How can I get it to do both?

    Thanks for the help.

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2001
    Location
    Los Angeles
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you load the new page and then use onLoad to run your function?

  3. #3
    SitePoint Enthusiast Jujubee's Avatar
    Join Date
    Mar 2001
    Location
    Canada
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm, if the new page is were another site, I couldn't do that. There must also me some more direct way of doing this...


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
  •