S
Sebastian
Hello all, was hoping someone might have a solution to this, I am
trying to open a link via target = _blank and another via window.open
on the same click (not my idea, but it's what the client wants.)
IE's (v.6-8) popup blocker w/ default settings blocks the actual HREF
(bad) and opens the second window.
I also tried onmousedown which opens lets HREF return but blocks the
second window (not as bad, but not ideal).
Here's some demonstration code:
<html>
<head>
<script>
function pop() {
window.open('http://search.yahoo.com', 'foo', 'width=350,
height=250');
}
</script>
</head>
<body>
<ol>
<li><a href="http://www.google.com" target="_blank" onclick="pop
();">onclick</a></li>
<li><a href="http://www.google.com" target="_blank" onmousedown="pop
();">onmousedown</a></li>
</ol>
</body>
</html>
Any solutions or suggestions, would be greatly appreciated!
trying to open a link via target = _blank and another via window.open
on the same click (not my idea, but it's what the client wants.)
IE's (v.6-8) popup blocker w/ default settings blocks the actual HREF
(bad) and opens the second window.
I also tried onmousedown which opens lets HREF return but blocks the
second window (not as bad, but not ideal).
Here's some demonstration code:
<html>
<head>
<script>
function pop() {
window.open('http://search.yahoo.com', 'foo', 'width=350,
height=250');
}
</script>
</head>
<body>
<ol>
<li><a href="http://www.google.com" target="_blank" onclick="pop
();">onclick</a></li>
<li><a href="http://www.google.com" target="_blank" onmousedown="pop
();">onmousedown</a></li>
</ol>
</body>
</html>
Any solutions or suggestions, would be greatly appreciated!