It seems like a lot and its driving me crazy. I need to copy the current URL into the code, which is into the first link. My goal is to as soon as I have this link clicked that it could reload the main page without refreshing it, I guess it would have to be done in ajax/jquery and open a new window with the second link. It is one link doing two things at once. Any help on how all this could be accomplished?
I have this, but of course it is not working.
<a href="window.location.href" onclick="window.open('theotherpage.pl?name=name&zip=123'); return true;">test</a>
Thanks for looking!