Vini
Vini

Reputation: 119

How to open a jsp page in new window of browser

I have a anchor tag link in my current jsp page ,clicking on which studentid is passed as query string and I want to open a new window of browser in which details of student will be displayed. I am using simple jsp and servlet. How to do it?

Upvotes: 0

Views: 21444

Answers (3)

Reetika
Reetika

Reputation: 1237

Add target in your hyperlink.

<a href="jsp page name" target = "_blank">Click here</a>

This will open in new tab when we click on it.

Upvotes: 0

Sudharmono
Sudharmono

Reputation: 1

how about using javascript

window.open('your')

Upvotes: 0

PSR
PSR

Reputation: 40318

<a href="javaScript:{openNewWindow();}"></a>

   function openNewWindow()
    {
    window.open("jsp name")
    }

Upvotes: 2

Related Questions