Re: How to prevent JavaScript from executing in an iframe
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: How to prevent JavaScript from executing in an iframe

From: Richard Cornford <Richard@litotes.demon.co.uk>
Date: Wed Aug 31 2005 - 15:31:58 CEST

seans wrote:
> Is there some way from preventing the JavaScript code
> in a document loaded into an iframe from executing?

Disable javascript in your browser, or configure the browser to ask for
permission to execute each script, and deny it for the scripts in the
frames. If you mean that you want to prevent the execution of these
scripts on other user's browsers then you cannot, it is up to them to
make that decision.

> I don't have access to the pages being loaded
> into the i-frame so I can't modify then.

Does this mean they are someone else's pages?

> They are being loaded from a server.

Now that is a novel idea :)

Richard.
Received on Mon Oct 24 02:14:20 2005