Home  >  Article  >  Web Front-end  >  Question: How can I make the content below change when I click on the upper navigation bar in an HTML webpage? That is to say, click on the navigation bar, only the middle of the page will change, and the rest will not move_html/css_WEB-ITnose

Question: How can I make the content below change when I click on the upper navigation bar in an HTML webpage? That is to say, click on the navigation bar, only the middle of the page will change, and the rest will not move_html/css_WEB-ITnose

不言
不言Original
2018-05-18 11:00:546107browse


How to achieve changes in the content below by clicking on the upper navigation bar in an HTML page? That is to say, click on the navigation bar and only change the middle of the page, leaving the rest unchanged
For example, jsp:include in the middle

Reply to discussion (solution)

Make an iframe on the middle page ~ put the navigation bar Set the target to the name/id of that iframe

Create an iframe in the middle page~ Set the target of the navigation bar to the name/id of that iframe
I am a super salary, how can I set the target of the navigation bar? ?How to set it?

You can use frame, iframe or ajax technology

Quoting the reply from agul_ on the 1st floor:
Create an iframe in the middle page~Set the target of the navigation bar to that iframe name/id
I am a super salary, how can I set the target of the navigation bar? How to set it?
The target attribute of a element
Assume

Quoted the reply from chikk on the 2nd floor:
Quoting the reply from agul_ on the 1st floor:
Create an iframe in the middle page ~ set the target of the navigation bar to the name/id of that iframe
I am a super salary person, how do I set the target of the navigation bar? How to set it?

The target attribute of a element
Suppose

This has to use js

3Q....I may have some understanding ==.

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