How to add tweet functionality in an iframe with JavaScript



I am writing a web app and I have all my other social coms working fine.
Twitter is proving to be a challenge.

The call to the intent-tweet URL will not open in an iframe.

Any other call opens another mobile safari window and drops the web app page.

I want to be able to see the tweet page in either an iframe or embedded in a small div that appears within the web app when I call the JavaScript function.

I am currently using the iframe.src method -( document.getElementByID(“social”).src=) to load the iframe with the element required. I cannot get this to work with twitter.

Please help.