Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

href link not working

Status
Not open for further replies.

dexeloper

Programmer
Oct 26, 2004
162
GB
Please tell me what's wrong here. A big box of smarties for the winner.

Go here
The link isn't executing the function 'openURL'. It's going to be a terrible weekend if I can't sort it.
 
Lose the target=blank from the link. Its messing with the javascript as it opens a new window before the link has a chance to execute the javascript.

<a href="..." [red]target='blank'[/red] ...>...</a>


Alternatively, use the OnClick event of the link instead of the HREF to execute your function. Remember to follow the function call with a return false; statement to avoid executing the blank HREF then.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Vacunita you're a star. I can eat, drink and be merry this evening. A thousand thanks.
 
Glad I could help.

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top