I have to open two link within a same tab using JavaScript and HTML:
<script type="text/javascript">
go(){
windows.open('http://www.yahoo.com');
}
</script>
a href="https://mail.google.com/mail/u/0/?logout&hl=en-GB"onclick = "go();">click me</a>
What I want; when someone clicked on click me hyperlink then it should automatically runs sign out link of Gmail in background without any alert and redirect the automatically link which is in windows.open('http://yahoo.com');.
Algorithm would be:
Ok, whole test page content would be:
Have tested it in FFox – works fine : )