Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 2 of 2

This is a discussion on To access iframe contentwindow within the Plugins Development section, part of the Chrome Plugins category: I wrote a content script to access DOM content of a web page.I am able to access the DOM content ...


  1. #1
    tangore is offline Junior Member
    Join Date
    Nov 2009
    Posts
    2

    Default To access iframe contentwindow

    I wrote a content script to access DOM content of a web page.I am able to access the DOM content but when i try to access one iframe contentwindow in that page it is saying as undefined.

    It is like document.getElementById('iframe') is giving me the iframe but when i try to access document.getElementById('iframe').contentwindow it is saying undefined.

    I want to access a script running in that document.

    Thanks

  2. #2
    zealot0630 is offline Junior Member
    Join Date
    Dec 2009
    Posts
    1

    Default

    You can not access contentWindow because it contains page functions, and for security reason all page functions is not accessible.

    Even if modify an element's onClick then fire click event, onClick won't be triggered; so does origin onClick event if exist.

    You can not access page functions.

Similar Threads

  1. Access LogMeIn From Chrome
    By cocomonk22 in forum Chrome Plugins
    Replies: 13
    Last Post: 10-15-2014, 07:03 AM
  2. Access to DOM(Document Object Model)
    By chello in forum Plugins Development
    Replies: 7
    Last Post: 05-10-2010, 10:18 AM
  3. Cannot access site...
    By mg2 in forum Chrome Troubleshooting
    Replies: 17
    Last Post: 11-30-2009, 08:10 PM
  4. DRAC Access in chrome
    By viswanath.kvg in forum Chrome Plugins
    Replies: 0
    Last Post: 11-27-2009, 04:27 PM
  5. [New Ext]Access Extension Panel
    By karajanlee in forum Chrome Plugins
    Replies: 10
    Last Post: 09-24-2009, 06:46 PM

Posting Permissions

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