Hi,
I am trying to write a javascript to create a popup window.
I am using struts framework and forwarding the request to a jsp and further populating details in JSP.
This is my script
function showpopup(setname)
{
//alert(setname);
window.open('<%=request.getContextPath()%>/showsetaffiliates.do?setname='+setname,'name','scrollbars=yes,resizable=yes,width=540,height=325');
}
Popup window opens, but gets displayed in some random location.
I want it to be displayed near the button I clicked. I searched in net and I did find ways for positioning it with respect to a browser window.
Is there a way to do it.
thanks
I am trying to write a javascript to create a popup window.
I am using struts framework and forwarding the request to a jsp and further populating details in JSP.
This is my script
function showpopup(setname)
{
//alert(setname);
window.open('<%=request.getContextPath()%>/showsetaffiliates.do?setname='+setname,'name','scrollbars=yes,resizable=yes,width=540,height=325');
}
Popup window opens, but gets displayed in some random location.
I want it to be displayed near the button I clicked. I searched in net and I did find ways for positioning it with respect to a browser window.
Is there a way to do it.
thanks