<p class="sougouContent"> This is the code for the frame part of my iframe <br> <br> <frameset rows="80,*" cols="*" frameborder="no" border="0" framespacing="0"> <br> <frame src="top.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" /> <br> <frameset cols="80 ,*" frameborder="no" border="0" framespacing="0"> <br> <frame src="left1.html" name="leftFrame" scrolling="No" noresize="noresize" id= "leftFrame" title="leftFrame" /> <br> <frame src="main.html" name="mainFrame" id="mainFrame" title="mainFrame" /> <br> </frameset> <br> <br> top.html There are two links A and B <br> <br> Now I want to implement such a function. When A is clicked, the left and right below are displayed normally (that is, divided into left and right part), how to realize that when you click B, the left and right parts below are merged, that is, the bottom part is a whole, and the parts are left and right~~~~~~~~~ </p> <br> <h2>Reply to the discussion (Solution) </h2> <p class="sougouAnswer"> To be implemented using javascript. </p> <p class="sougouAnswer"> To be implemented using javascript. <br> <br> Hmm, how to implement this using JS? Can you tell me the process?? </p> <p class="sougouAnswer"> When you click B, set the left width to 0. <br> <br> Similar to making a menu bar on the left that can be hidden. </p> <p class="sougouAnswer"> When clicking B, set the left width to 0. <br> <br> Similar to making a menu bar on the left that can be hidden. <br> <br> Well, I just don’t know where the JS should be written ~ </p> <p class="sougouAnswer"> In B’s click event </p> <p class="sougouAnswer"> In B’s click event <br> But when I click B, it’s really top If you click, you cannot get the left object in the frame at all. I have tried this method before~ </p> <p class="sougouAnswer"> Idea: When you click A, you don’t need to execute too many methods, just keep the original frame mode. If you want If you want to change it, get the cols of the frameset and change its layout mode. </p> <p class="sougouAnswer"> When clicking B, get the cols of the frameset inside and set the value to "*" </p> <p class="sougouAnswer"> Thank you everyone for your answers. None of them are the answers I want, but thank you anyway. It can be concluded Posted </p>