This might be work too... <a href="javascript:void(0);" onclick="window.open('ViewProjectSummary.do?projectId=<bean:write name="collection" property="projectId" />','previewwin','width=700,height=460, scrollbars=yes,resizable=yes,location=no');"> ... </a>
This way, the current browser window state is unchanged. Also, if you use a function, you'll have access to the window at a later time. var newwindow; function openWindow(id) { newwindow = window.open('ViewProjectSummary.do?projectId='+id,'previewwin','width=700,he ight=460, scrollbars=yes,resizable=yes,location=no'); } function closeWindow() { if(!newwindow.closed) { newwindow.close(); } } <a href="javascript:void(0);" onclick="openWindow('<bean:write name="collection" property="projectId" />')"> ... </a> <a href="javascript:void(0);" onclick="closeWindow()">Close Window</a> Chad -----Original Message----- From: alu, artifex [mailto:[EMAIL PROTECTED] Sent: Friday, February 11, 2005 9:43 AM To: Struts Users Mailing List Subject: Re: How to assign the POPUP window to hyperlink i.e <a href= it *should* work without the onClick event but with the javascript: keyword before the link: <a href="javascript:window.open('ViewProjectSummary.do?projectId=<bean:write name="collection" property="projectId" />','previewwin','width=700,height=460, scrollbars=yes,resizable=yes,location=no');"> ... </a> just look at the quotes: ' opposed to " -- i think that's the reason why it didnt work art senthil Kumar wrote: >Here i put my code but width and height ,scrollbars,location >are all not working. > > > ><td align="left"> > > <a href=window.open("ViewProjectSummary.do?projectId=<bean:write >name="collection" property="projectId" />", >"previewwin","width=700,height=460, >scrollbars=yes,resizable=yes,location=no");> > > <bean:write name="collection" property="projectName"/> > </a> > </td> > > >Thanks on advance. > > >regs., >senthil > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]