Home  >  Article  >  Java  >  What does target mean in jsp

What does target mean in jsp

(*-*)浩
(*-*)浩Original
2019-05-16 11:53:153136browse

targe is the attribute of the HTML tag . The target attribute specifies where to open the action URL.

Recommended Course: Java Tutorial

What does target mean in jsp

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to submit form in jspNext article:How to submit form in jsp