-1

I am trying to access an element by id="mail" inside an iframe with id="frame_Customized_error_messages" from this page. Searching for this leads to me to all sort of different ways of getting this done. However, none of them work or is bit dated. Couple of things I tried, but did not work:

javascript document.getElementById in other frames

Get element from within an iFrame

user1720897
  • 1,216
  • 3
  • 12
  • 27
  • 2
    Possible duplicate of [Get element from within an iFrame](https://stackoverflow.com/questions/1088544/get-element-from-within-an-iframe) – ellipsis Jan 22 '19 at 10:32
  • @AshayMandwarya The answer you linked to was referenced in my question. The solution to that answer doesn't fix my specific problem. That question was posted in the year 2009. I am pretty sure, there is a modern alternative to it. – user1720897 Jan 22 '19 at 11:50

1 Answers1

1

you can`t ... access elements from iframe.. if that would be possible then i would make a new site called facebook.boo.com and have facebook loaded in an iframe and get your inputs ... thats a serious security threat... but if you controll the app that is loaded in the iframe and is yours... then have a look on this one: https://gist.github.com/pbojinov/8965299

Mihai
  • 518
  • 4
  • 12