Home > Java > javaTutorial > body text

What does target mean in jsp

(*-*)浩
Release: 2020-09-17 10:30:26
Original
3075 people have browsed it

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>
Copy after login

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!

Related labels:
jsp
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!