Questions | Login

Top / Javascript

can hyperlink do different job ??? (need a javascript plz)? ?

demo 21 Dec 2008 03:24pm
one hyperlink wit 2 target.

one target on iframe (target="iframe")
n the other 4 area (target="#gohere") or go to top of da page

I need a script plz!!??

Answers

demo 21 Dec 2008 03:32pm
<a href="URL1" target="_blank" onclick="window.location='URL2'">Hello!</a>

This will open the URL1 in a new window and URL2 in the current window. You should be able to edit it for your purpose.

Related

Submit Answer

You must be logged in to post an answer. Please Login or Register.

Powered by phpMyAnswers.