Home > front end >  Hyperlink jump problem
Hyperlink jump problem

Time:11-02

A Javaweb project, one of the JSP page a hyperlink
I didn't write this page
Why do click on the page before and after the jump, but also a JSP page, the page is where?

CodePudding user response:

A tag of the href attribute, # for marking anchor point, which is a mark,
After # what also don't write, the default behavior is to jump to the current at the top of the page, to return to the top button is so of the implementation,
Id # behind plus element, jump into the current page that element,
You try to know,
 

Is the following the change of the scroll bar, this page is not open a new page,

One more thing, if a target attribute to "_blank" label, to open the way for a new page, then it will open a new page, or the current HTML, equivalent to inside you open a web browser, copy the url and open a,

CodePudding user response:

reference 1st floor LiuBai_X response:
a label href attribute, # for marking anchor point, which is a mark,
After # what also don't write, the default behavior is to jump to the current at the top of the page, to return to the top button is so of the implementation,
Id # behind plus element, jump into the current page that element,
You try to know,
 

Is the following the change of the scroll bar, this page is not open a new page,

One more thing, if a target attribute to "_blank" label, to open the way for a new page, then it will open a new page, or the current HTML, equivalent to inside you open a web browser, copy the url and opened a

I'm sorry, is I didn't say clear
I the address bar of the original path is http://localhost:8080/day14/regist.jsp
The original page is the registration page, user id, password and verification code input box, point the links page has become like this, I feel really happened page jump, hope bosses to reassure

CodePudding user response:

# in the applications of general said that the current page or meaningless
For example, https://bbs.csdn.net/topics/394911082#
  • Related