I have used the onload function to trigger the opening of a secondary window. This secondary window opens fine. I would like to trigger another event when the secondary window has loaded again using the onload function. However I can't get this to work. Thanks for any help
<head>
<script language="javascript">
function loadwebpage()
{
window.open(" "first", "toolbar=yes,location=yes,scrollbars=yes,resizable=yes,width=300,height=300")
//the next line does not work
first.onLoad = function() { alert ("pop up has fully loaded"
}
}
</script>
</head>
<body onload = "loadwebpage()">
</body>
</html>
<head>
<script language="javascript">
function loadwebpage()
{
window.open(" "first", "toolbar=yes,location=yes,scrollbars=yes,resizable=yes,width=300,height=300")
//the next line does not work
first.onLoad = function() { alert ("pop up has fully loaded"
}
</script>
</head>
<body onload = "loadwebpage()">
</body>
</html>