Jump to content

How to blank a FRAME


pop-eye

Recommended Posts

I am using HTML Frame tag (crazy  :shrug: ) 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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.