How to open a popup window ?

Hi,I try to open a popup window it does't throgh any exception but it will not show the popup window I want open popup window when i enter in url of the parent window.Thanks & Regards,Merlin Roshina
[238 byte] By [MerlinRosinaa] at [2007-10-3 4:51:11]
# 1
window.open("url","name","properties");
jgalacambraa at 2007-7-14 22:55:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
First tell us how you tried to open the pop up window ..then we can suggest where you are wrong.By the way ..hope you dont have pop up blockers like google .. yahoo toolbar enabled in your browser. :-)-Rohit
RohitKumara at 2007-7-14 22:55:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

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

MerlinRosinaa at 2007-7-14 22:55:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
var OpenWindow=window.open("popup.jsp", "newwin","height=300,width=300");
jgalacambraa at 2007-7-14 22:55:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
No the problem is with this ..<SCRIPT type="javascript">replace it with ...<SCRIPT>Also this code should be removed ...<script> window.onload=openindex() </script>-Rohit
RohitKumara at 2007-7-14 22:55:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6

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

RohitKumara at 2007-7-14 22:55:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 7
HiThanks Its working fine..Warm RegardsMerlin Roshina
MerlinRosinaa at 2007-7-14 22:55:51 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...