Originally posted by katasterisma
Originally posted by katasterisma
Originally posted by katasterisma
<head> <title>lucio palmitessa</title> <meta http-equiv="Content-type" content='text/html; charset="UTF-8"' /> <link rel="stylesheet" type="text/css" href="/style-p.css" /> <link rel="shortcut icon" href="/src/arancia.png" /> <script type="text/javascript" src="src/javascriptTest.js" ></script> </head> <body > <div id="esquerra"><!-- menu principale della sinistra--> <br /> <p><A onclick="test();">Open pop-up and grab url</a></p> <p><a>Text 1</a> </p> <div id="sinistra"></div> <p><a >Text 2</a> </p> <div id="iltesto"></div> </div><!-- fine esquerra --> </body> </html>
var myw = true
function pop(nome)
{
if(false == myw.closed)
{
myw.close ();
}
myw = window.open("http://"+nome+"","M","width=700,height=2000,location=yes,status=yes,resizable=yes,scrollbars=yes,fullscreen=no,toolbar=yes,left=200");
}
function test(){
pop('www.yahoo.it');
setTimeout("timeo()",3000);
var y=myw.location.href;
document.getElementById('sinistra').innerHTML='url '+y;
}
function timeo(){
document.getElementById('iltesto').innerHTML='no function';
var x = myw.location.href;
alert(x);
}
Comment