Hey guys,
I know this isn't a technical help forum, however i hope somebody that's bored can assist.
I am trying to build my path and im not really a coder at least with JS.
I desperately need to know how to do 2 things:
1. Have a normal html link that when clicked, it will redirect the current window (like a normal link) and ALSO open a new tab or window at the same time. This seems to be common with many paths.
2. Do exactly the same as above, except the click will be a hidden form submit click as apposed to an html link.
I basically need the code for this i can copy and paste.
Thank you in advance! Google wasn't really much help.
J.
Hi J,
1 - this is an alternative method to do what you want, works better because it can't be blocked :
<script language="Javascript" type="text/javascript">
function redirecto(delay,url) {
var obj = 'window.location.replace("'+url+'");';
setTimeout(obj,delay);
}
</script>
<a href="http://www.google.com" target="_blank" onClick="redirecto(2000,'http://mypopunder.com');">LINK</a>
Basically it opens the link you want in a new tab, and redirects the current one to the popunder url.
Otherwise if you don't want that and really want a popunder then you can just replace the redirecto() by a popunder() function you can easily find online.
2 -
<form name="myform1" method="post" action="http://mywebsite.com/submitformpage.php">
<input type="hidden" name="name" vaue="jason" />
<input type="hidden" name="email" value="jason@gmail.com" />
<a href="#" onClick="popunder(); document.myform1.submit();">LINK</a>
</form>
It's not really copy/paste but you get the idea 
Cheers,
Mehdi
Your a legend thank you!
No problem mate, let me know if you manage to get it work, otherwise i can probably fix it for you if you PM me your actual file.

Cheers,
Mehdi