私は単純なiframeコードを使用しています。 iframe内のボタンが機能しない
<iframe src="http://caesium.x10.mx/test/index.html" allowtransparency="true" style="border:none" width="852" height="500"></iframe>
そしてhttp://caesium.x10.mx/test/index.html内部
は、作業ボタン(右下)があるが、あなたはiframeをページ( http://caesium.x10.mx/test/index.php)にこのボタンをクリックしてください場合は、ボタンは機能しません。誰でも私にこの解決策を見つけるのを助けることができますか?
ありがとうございます!
ボタンに使用されているコード。
<center><button onclick="ChangeSkin()">Change Skin</button></center>
<script>
function ChangeSkin() {
location.href = 'https://www.minecraft.net/profile/skin/remote?url=https://crafatar.com/skins/' + document.getElementById('username').value + '.png';
}
</script>
更新:これは、iframeコードのみの空白ページを作成する際にテストしましたが、ボタンはまだ機能しませんでした。 – Caesium