mascotpumps.com › iframe-disable-download. Hi All, I want to show an external url eg(http://codzz.com/mob.aspx) inside iframe and there is a button to download file on click, But the. Chrome 83 is now blocking sandboxed iframe downloads by default. Add the below containerJS.zip file as a static resource labeled 'containerJS'
Consider: How to not download a file iframe
How to not download a file iframe |
869 |
How to not download a file iframe |
373 |
How to not download a file iframe |
777 |
How to not download a file iframe |
378 |
.directive('fileDownload', function ($compile) { |
var fd = { |
restrict: 'A', |
link: function (scope, iElement, iAttrs) { |
scope.$on("downloadFile", function (e, url) { |
// console.log('dl url-', url); |
var iFrame = iElement.find("iframe"); |
if (!(iFrame && iFrame.length > 0)) { |
iFrame = angular.element("<iframe style='position:fixed;display:none;top:-1px;left:-1px;'/>"); |
iElement.append(iFrame); |
} |
iFrame.attr("src", url); |
}); |
} |
}; |
return fd; |
}); |
Источник: [https://torrent-igruha.org/3551-portal.html]
-
-
-