私のアプリの一環としてiframeをページとして表示する必要があります。私はiframeがその歴史の中で/前に行くことができるように、ページに前後のボタンを提供する必要があります。Phonegapイオン - Iframe history.back();は動作していません
私が試してみてください。
$scope.backiframe = function() {
var iframe = document.getElementById('iframe');
iframe.contentWindow.history.go(-1);
}
私のボタンとiframeを持つ: <a class="button button-positive" ng-click="backiframe()">back</a> <iframe id="iframe" ng-src="{{trustSrc(url)}}" scrolling="yes"></iframe>
私は次のエラーを取得する: Error: Permission denied to access property "history" [email protected]://localhost:8100/js/controllers.js:1217:16 anonymous/[email protected]://localhost:8100/lib/ionic/js/ionic.bundle...
誰もが戻る/進むにはiframeを取得する方法を知っていますphonegapイオンハイブリッドアプリで働く?
は、外部のURLを参照のiframeですか? – Shakespeare
はいiframeがリンクしていて、外部のURLです – AN11
[エラー:プロパティhrefにアクセスできません](http://stackoverflow.com/questions/15703503/error-cant-access-property-href) – Shakespeare