Setting location.hash in frames

后端 未结 7 2011
清酒与你
清酒与你 2021-02-09 15:19

I am using ajax to update the location of a page in a frame. But when setting the location of the hash (on Chrome and some versions of IE (5.5) specifically, but occasionally on

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-09 15:47

    I have a workaround and it involves a full-page table with embedded iframes. I replaced my frameset with a table that takes up 100% height and 100% width and has two rows. Then, in each of the table cells I put an iframe that takes up 100% height and width for each cell. This, essentially, mimics a frameset without BEING a frameset. Best of all, no reload on hash change!

    Here's my old code:

    
    
    Title
    
    
        
        
        
        <body>
        <p>This page uses frames, but your browser doesn&#39;t support them.</p>
        </body>
        
    
    
    

    ...and here's my new code:

    
    
    Title
    
    
    
    

    Hope this helps.

提交回复
热议问题