www.webdeveloper.com
Results 1 to 4 of 4

Thread: Frame manipulation

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    2

    Frame manipulation

    I want to make a page consisting of two frames. The first frame would load the second frame and manipulate its content after finished loading. How can I do this?
    I've tried putting this code in the first frame, but no result.
    Code:
    parent.secondframe.onload = function(){ //manipulation here}
    parent.secondframe.location = the_url;
    I've also tried reversing those lines, still no luck. Anybody has suggestion?

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    If "the_url" is not on the same server as the script, you will not be able to manipulate it. It is a browser security feature.

  3. #3
    Join Date
    Jun 2009
    Posts
    2
    So that's why.. thanks for the answer.
    What I want to do is displaying a page from a url and put some things on top of that page (like text/image) without modifying the page content. Is there any way to do this? Using frame, iframe, div or anything else?

  4. #4
    Join Date
    Nov 2002
    Posts
    4,473
    You can do anything you want outside of the iframe containing the foreign URL. However, you cannot access the iframe for information either, probably not even the location.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles