How do I open Javascript link in new tab?

How to put a visited color on a javascript link?

  • If the hyperlink has JavaScript code in its href property, then IE7 doesnt keep track (history) of those links. For example, if we have following link in a html page href="javascript:__doPostBack('LinkBut… Though the link is clicked many times, color of the link button is not changing to visited link color.

  • Answer:

    dont rely on putting your JS in the href part of the link, instead make it href="#" and put your JS in the onClick event, like this: <a href="#" onClick="callJSFunction();"> a link </a>

Pungas at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.