Det virker næsten. Den skriver object i det input jeg skriver til.
doc1:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"> <head>
<title>Pop</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="favicon.gif" type="image/gif" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="revisit-after" content="7 days">
<meta http-equiv="content-language" content="en">
<meta name="Keywords" content="" />
<meta name="description" content="" />
<script type="text/javascript">
function createPop(){
window.open("newPage.php","ResizeBillede","width=300,height=200,status=no");
}
</script>
</head>
<body>
<div style="width: 150px; height: 75px; background-color: #00f;" onclick="createPop();"></div>
<input id="hans" type="text" />
</body>
</html>
doc2:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="
http://www.w3.org/1999/xhtml"> <head>
<title>Pop</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="favicon.gif" type="image/gif" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="revisit-after" content="7 days">
<meta http-equiv="content-language" content="en">
<meta name="Keywords" content="" />
<meta name="description" content="" />
<script type="text/javascript">
function createPop(){
window.open("newPage.php","ResizeBillede","width=300,height=200,status=no");
}
</script>
</head>
<body>
<div style="width: 150px; height: 75px; background-color: #00f;" onclick="createPop();"></div>
<input id="hans" type="text" />
</body>
</html>