Thanks for moving your post ^^.
There are 2 secnarios here:
First: You have a layout that is comprised of frames and you want to redirect x frame to a different page based upon something that is happening in the current frame. Lets just assume that you have a layout that consists of 3 frame rows that have the names first, second, and third. Now the user preforms some action in frame 'second' that requires the page in frame 'first' to be changed you would write this script back to the browser:
Second secnario: You have a page layout comprised of a frameset and you need the page to redirect away from your frameset layout to just one page you would use:
Read this if you want to know how to get a correct reply for your question:
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
Technical Editor for: Professional Search Engine Optimization with ASP.NET