Jump to content

Blurring the parent window from within an Iframe


vspravin

Recommended Posts

Hi all,

        I would like to blur parent document containing the iframe from within an iframe.At present i can only blur the current window but not the parent window.....is this possible within an iframe?

        seeking help ASAP...

 

Cheers,

Pravin.

Link to comment
Share on other sites

I don't know what you mean with "I would like to BLUR ..." but you can access the parent frames this way(s):

 

"top" points to the frame on the top and "parent" points to the one next higher.

With parent.frames you can access all frames on the parent frame.

 

kind regards

Link to comment
Share on other sites

if you don't want to control an other frame in the parent frame, but the parent frame itself you could also try:

 

parent.document.getElementsByTagName("body")[0].bgColor = "#000000";

 

(in this example I'm changing the bg-color but you should be able to do whatever you want)

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.