This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes New browser window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "New browser window" Watch "New browser window" New topic

New browser window

Padma Priya
Ranch Hand

Joined: Feb 01, 2007
Posts: 116
Hi All,

Can anyone help me out with this problem.......I have a html form with a submit button....When i click on the submit button a jsp is executed which displays the result...

But i want the display of the result to happen in another browser window rather than in the same window when the submit button is clicked.

That is when i click the submit button a new window should open and show me the result.

How can we do it

Thanks in Advance
Paul Clapham

Joined: Oct 14, 2005
Posts: 19864

Here's the first line from the first page that Google returned when I gave it the keywords "html new window":

If you want your link to open a page in a new window use the target="_blank" in the <a href> tag.
I agree. Here's the link:
subject: New browser window
It's not a secret anymore!