Home  >  Article  >  Backend Development  >  How to use PHP to jump to the corresponding page by clicking on the navigation on the left and on the right

How to use PHP to jump to the corresponding page by clicking on the navigation on the left and on the right

Guanhui
GuanhuiOriginal
2020-05-08 13:22:384232browse

How to use PHP to jump to the corresponding page by clicking on the navigation on the left and on the right

#How to implement php click on the left navigation to jump to the corresponding page on the right side

First set multiple a tags on the left side of the page as navigation; then Add an iframe on the right side of the page and set its attribute name to content; finally, set the attribute target of the a tag used on the left to content.

Sample code:

<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8" />
        <title>实现点击左边导航右边跳转到对应页面</title>
    </head>
    <body>
        <!-- 左侧菜单 -->
        <div class="left">
            <a href="http://www.baidu.com" target="content">百度</a>
            <a href="http://www.qq.com" target="content">qq</a>
        </div>
        <!-- 右侧页面 -->
        <div class="right">
            <iframe src="" name="content"></iframe>
        </div>
    </body>
</html>

Recommended tutorial: "PHP Tutorial"

The above is the detailed content of How to use PHP to jump to the corresponding page by clicking on the navigation on the left and on the right. 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