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

Guanhui
Release: 2023-02-28 22:58:01
Original
4268 people have browsed it

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

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!

Related labels:
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!