cancel
Showing results for 
Search instead for 
Did you mean: 

Display one the popup

Former Member
0 Kudos

I am opening a new window(Popup) when click on the submit button. My question is, is there any way I can open the popup in the first time itself and the submit button on the popup? it is a JSP page. I need the whole thing in the new window.

<%@ taglib uri="tagLib" prefix="hbj" %>

<jsp:useBean id="contactSearchBean" scope="request" class="SearchBean" />

<hbj:content id="myContext" >

<hbj:page title="Initial Page">

<hbj:form>

<hbj:gridLayout>

<hbj:gridLayoutCell rowIndex="1" columnIndex="1">

<table>

<td>

<hbj:label

id="lblSearchTerm"

required="FALSE"

text="Enter Subject of Interest"

design="LABEL"

labelFor="inptSearchTerm"

/>

/>

. button

onClientClick="window.open('com.Search','newwindow','resizable=yes,scrollbars=yes,toolbar=yes,location=yes,status=yes,directories=yes,menubar=yes,copyhistory=yes,width=800,height=600')"

.

.

.

.

Is there any way some body can help me.

Accepted Solutions (0)

Answers (1)

Answers (1)

detlev_beutner
Active Contributor
0 Kudos

Hi TT,

I'm not sure about your aims, but if it is the simple question how to get a JSP to automatically pop up a new window when it is rendered for the first time, just put the JS code <i>window.open(...)</i> unconditioned into a <i><script language="javascript">...</i> block.

Hope it helps

Detlev