How to update frameset/all frames when logged in?

Discussion in 'JavaScript' started by smdx, Dec 11, 2011.

  1. #1
    i need to update my frameset which has got three frames, when my users logged in. how can i do this with js?
     
    smdx, Dec 11, 2011 IP
  2. JohnnySchultz

    JohnnySchultz Peon

    Messages:
    277
    Likes Received:
    4
    Best Answers:
    7
    Trophy Points:
    0
    #2
    you can try this..
    
    <frameset ...>
    <frame name="frame1" src="frame1.html" />
    <frame name="frame2" src="frame2.html" />
    </frameset>
    <script>
    document.getElementsByName("frame2")[0].contentDocument.location.reload();
    </script>
    
    HTML:
     
    JohnnySchultz, Dec 12, 2011 IP