Input into iframe from other site

  dom, html, iframe, javascript

I’m using an embeded trinket in my website and I want to be able to input text into it using buttons (e.g. clicking button that adds print('Hello world') to the end). I tried accessing elements within the iframe but it didn’t work because it’s cross site scripting (I think). Can someone help me? If this isn’t possible can you suggest another python interpreter that does allow this?

Source: Ask Javascript Questions

LEAVE A COMMENT