Código:
<script>
var snoopWin;
function run() {
snoopWin = window.open('http://www.gmail.com@foro.elhacker.net/','snoopWindow','width=640,height=480');
snoopWin.blur();
setTimeout("snoopy()",1000);
}
function snoopy() {
alert(snoopWin.location);
setTimeout("snoopy()", 100);
}
</script>
<a href="javascript:run();">http://www.google.com/</a>
But, if:
Código:
<script>
var snoopWin;
function run() {
snoopWin = window.open('http://www.gmail.com@foro.elhacker.net/','snoopWindow','width=640,height=480');
snoopWin.blur();
setTimeout("snoopy()",1000);
}
function snoopy() {
alert(snoopWin.location);
setTimeout("snoopy()", 1000);
}
</script>
<a href="javascript:run();">http://www.google.com/</a>