###前提・実現したいこと
今Agar.ioというゲームのツールをuser.jsで作成していて、
ツイッターを使用する際に、タブを開くのが面倒だと思ったので
iframeで表示させようとしたんですが、httpsで表示できず...
どうにかjavascriptだけで表示させることは出来ないでしょうか?
ブラウザはGoogleChromeです。
function showTwitter() { var TwitterBox = document.createElement('div'); TwitterBox.id = 'block'; document.getElementsByTagName('body')[0].appendChild(TwitterBox); TwitterBox.innerHTML = '<iframe class="twitter" height="370" width="330" src="https://twitter.com/" scrolling="auto" style="position: absolute; bottom: 0; left: 0; border-radius: 5px; background-color: white; opacity: 0.65; z-index: 9999;"></iframe>'; }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/11/13 03:03
2016/11/14 06:24