Html a tag calls iframe

A second-level menu. You want to use the a tag to call iframe to achieve the effect that the second-level menu will not be closed after clicking. The code is as follows:

                    <li>
                        <a href="index.php?key=ceshi" target="zxyl">test</a>
                        <a href="">test1</a>

                    </li>
                    
                    <iframe src="test.php" name="zxyl"  style="width:1000px" frameborder="0" scrolling="no"></iframe></div>
                    

but after clicking, the index.php framework is also loaded in iframe? What"s going on? Ask how to write the correct code?

clipboard.png

May.18,2022

what you link to is the frame page, of course, it is out of the frame page, isn't it normal?

Menu