Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Opening a new window from servlets

 
unna kumar
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This my servlet page.My coding is
pw.println("<html><body>">;
pw.println("<img src='file:///c:/jsdk2.0/examples/image.gif'>");
pw.prinltn("</body></html>");
My question is when I click this image I should get
a new window with no toolbars.
If I give <a href> to this image I will get a
html page with tollbars.
<img onclick > is not applicable in Netscape.
Any other Solution for this.
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kumar!
U can try out the below code.It opens a new window in both the browsers.
<a href="" onClick= "window.open('','','height=230,width=400,left=75,top=10');return false;"><img align="absBottom" border="0" src="test.gif" width="75" height="24"></a>
Hope this is what u want.
Good Luck
Preethi


[This message has been edited by Preethi Suryam (edited December 14, 2000).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic