targe is the attribute of the HTML tag
Recommended Course: Java Tutorial
It has the following values:
_blank Opens in new window.
_self Default. Open in the same frame.
_parent Open in the parent frame set.
_top Open in the entire window.
framename Open in the specified frame.
In the following example, the page specified in the action attribute will be opened in a new window:
<html> <body> <form action="/example/html/form_action.asp" method="get" target="_blank"> First name: <input type="text" name="fname" /><br /> Last name: <input type="text" name="lname" /><br /> <input type="submit" value="Submit" /> </form> <p>请单击确认按钮,输入会发送到服务器上名为 "form_action.asp" 的页面。</p> </body> </html>
For clicking the query button or a tag, etc. , open a new page and display the results as follows:
After adding target="_blank" to the form tag, click the search button to display A new page will open when querying the results
2. The same is true for adding the a tag:
The above is the detailed content of What does target mean in jsp. For more information, please follow other related articles on the PHP Chinese website!