...

View Full Version : Control a child window through parent.



elcaro2k
08-26-2002, 12:38 PM
I would like to have an onClick function that will oren another window the first time it is clicked and if it is already open in the background, the onClick would simply focus the window.

Thanks!

x_goose_x
08-26-2002, 02:39 PM
<html>

<head>

<script>

function openit() {
if (window.pop) {
pop.focus();
}else{
pop=window.open("","","");
}
}
</script>

</head>

<body>

<a href="javascript: openit();">Open</a>

</body>

</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum