How to disable scripts in my iframe?

I have an iframe that loads a page that I would like to disable javascripts loading on the page loaded by the iframe. On the loaded page there are menu bars, drop-down lists, etc. that make the home page that I load this iframe with slow loading. Is there a way to disable javascript from my iframe page?

I need javascripts to stay on the page because the visitor can visit the page.

Here is my iframe download code:

<div style="position:absolute; overflow:hidden; width: 800; height:400; left:-170px; top:0px;"> <iframe src="/News/Pages/Default.aspx" style="overflow:hidden; width:100%; height:650;" frameborder="0" marginheight="0" marginwidth="0" scrolling="no"> </iframe></div> 

If this is not possible, then there is a way to stop / disable the iframe page from loading .js files. .Js files are loaded on the iframe page, javascript is not inline.

+4
source share
2 answers

Check out the latest sample code on this page, http://www.iframehtml.com/iframe-scripts.html

Shows how to remove JavaScript from iframe source file using PHP

+4
source

As far as I know, I do not think that you can disable the loading of javascripts in the iframe. The best way is to avoid script tags on the iframe page.

0
source

All Articles