Objective
I want to open a URL in a new tab/window in the EXACT same manner as target="_blank" would.
Code
I'm using a PHP condition which triggers the following JavaScript:
<script type="text/javascript">
window.open ("http://www.google.com/","_blank", "status=1,toolbar=1");
</script>
My problem
window.open is NOT THE SAME as target="_blank" hyperlinks.
- It presents an issue with pop-up blockers.
- The window requires parameters to look like what target="_blank" would have produced.
- Once the JavaScript runs, certain font colors of the containing document are lost.
My question
How do I EXACTLY simulate what's produced by target="_blank"?