So I have a JavaScript function:
function loadHelp() {
window.location = "http://www.examplewebsite.com";
return false;
}
No, when I click on:
<a target="_blank" href="javascript:void(0);" onclick="loadHelp()" class="btn-image help"> </a>
Nothing happens.
I have also tried:
function loadHelp() {
return http://www.somewebsite.com
}
and
<a target="_blank" href="loadHelp()" class="btn-image help"> </a>
but that doesn't work either.
Please help!