The days of <a href=”#” target=”_blank”></a> are long gone. The way to open a new window with a link is to do it using the javascript window.open() method via an onclick callback.
However, you still want to make your pages SEO friendly, so you don’t want to go about generating links with href=”#”. The way to do it is as follows:
Javascript:
<script>
function openNewWindow(url) {
window.open(url);
}
</script>
HTML:
<a href=”someURL.html” onclick=”openNewWindow(‘someUrl.html’);return false;”>Link</a>
When implementing links this way, → Continue reading “Opening a New Window From a Web Page with Javascript that is SEO Friendly”