E pa eto, ja ne koristim IE, tako da bisam upućen u njegove mogućnosti...
To što sad hoćeš je malo komplikovanije, i moglo bi da se odradi ovako:
Code:
<html>
<script type = "text/javascript">
function openWindow(url) {
var width = screen.availWidth;
var height = screen.availHeight;
var x = 0, y = 0;
if (document.all) {
x = window.screenTop;
y = window.screenLeft;
}
else if (document.layers) {
x = window.screenX;
y = window.screenY;
}
var args = 'resizable=1, toolbar=1, location=1, directories=1, addressbar=1, scrollbars=1, status=1, menubar=1, top=0, left=0, screenX=' + x + ', screenY=' + y +', width=' + width + ', height=' + height;
new_window = window.open(url, '', args);
}
</script>
<body>
<a href = "http://www.google.com" onclick = "openWindow(this.href); this.href = '#'; window.location = 'http://www.yahoo.com';">link</a>
</body>
</html>
Samo što sad "gubiš" mogućnost otvaranja u tab-u u Firefox-u...