I have tried, but now the page is just blank. I like to remove the frames, so the URL (in this case Google.com) is on the page but now without the frames.
@jamesbcox1980Sep 22.2009 βΒ #Ok, so you're wanting to simulate the right-click and "Show only this frame". You want the original content to go away and the iframe to become the main window, is that correct? Question is, do you mind reloading the page? If not, it's as simple as [CODE]window.location=document.getElementById('fr1').src;[/CODE]