SitePoint Enthusiast
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.
SitePoint Zealot
Can you load the new page and then use onLoad to run your function?
SitePoint Enthusiast
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...
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
Bookmarks