Hi,
This is my code
<html>
<head>
<SCRIPT type="javascript">
function openindex()
{
var OpenWindow=window.open("popup.jsp", "newwin",height="300",width="300");
<%System.out.println("inside the script"); %>
}
</script>
<%System.out.println("outside script"); %>
</head>
<body onload="openindex()">
<script> window.onload=openindex() </script>
Hello,
</body>
</html>
Thanks
Merlin Roshina
Tested successfully with the following code ...
<html>
<head>
<SCRIPT>
function openindex()
{
var OpenWindow=window.open("http://yahoo.com", "newwin","height=300,width=300");
<%System.out.println("inside the script"); %>
}
</script>
<%System.out.println("outside script"); %>
</head>
<body onload="openindex()">
Hello,
</body>
</html>
NOTE:
The System.outs will be printed during interpretation by browser during page load and not during javascript invokation.
Cheers
-Rohit