pop-eye Posted July 21, 2010 Share Posted July 21, 2010 I am using HTML Frame tag (crazy ) and need to blank out one of the frames when a certain page is loaded in a different one. I have tried different functions in PHP and not getting right. Any ideas? thanks. Quote Link to comment Share on other sites More sharing options...
jd307 Posted July 22, 2010 Share Posted July 22, 2010 The page that loads, put this into it's head: <script language="JavaScript" type="text/javascript"> <!-- function blankFrame() { parent.CHANGE_THIS_TO_THE_NAME_OF_THE_FRAME_TO_CHANGE.location="myBlankPage.htm"; } //--> </script> Of course, the big part that states to change it, type the name of the frame you want to blank out in there and rename the blank page to whatever your want it to be. Next, on the same page add this to the BODY: <body onload=”blankFrame()”> This isn't tested, so it may not work. But in theory when you load the specific page that needs to blank out another frame, that page should automatically change whatever is in the frame you select to the "blank" page. See how it goes. Quote Link to comment Share on other sites More sharing options...
pop-eye Posted July 23, 2010 Author Share Posted July 23, 2010 Hey, nice. It worked fine. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.