To refresh whole frameset

Discussion in 'PHP' started by realistic, Nov 24, 2009.

  1. #1
    For mine frameset page, whenever anyone click on any link within any frame, want that frameset (i.e. all the frames) to be refreshed or reloaded.

    Need help to about simple way to do this?

    Regards,

    Realistic
     
    realistic, Nov 24, 2009 IP
  2. mastermunj

    mastermunj Well-Known Member

    Messages:
    687
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    you want to refresh all the frames of that page on click? or just the frame inside which click is made has to be refreshed?

    more over, this question belongs to JavaScript section, but you can use something similar to following might do the trick..

    
    for(var i = 0; i < document.frames.length; i++)
    {
    	document.frames[i].location.reload();
    }
    
    Code (markup):
     
    mastermunj, Nov 24, 2009 IP