[Javascript] Iframe Permission Denied

Matt Barton javascript at mattbarton.org
Thu Aug 25 05:11:09 CDT 2005


Am I right in thinking that JavaScript prevents two frames which are 
displaying content from different domains from interacting?

It wuld seem to be a reasonable security limitation if so.

Matt



SkyScanner wrote:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html><head>
> <meta content="text/html; charset=windows-1252" http-equiv=Content-Type>
> </head>
> <body>
> 
> <div id="elem01"><iframe src="http://www.yahoo.com" width="100%"
> height="300" name="table1"></iframe></div>
> 
> <SCRIPT LANGUAGE="JavaScript">
> alert('I am pausing. Click me when the page loads...');
> table_url = 'http://www.google.com';
> table1.src = table_url;
> </script>
> 
> </body>
> </html>
> 
> When running the above, the Yahoo page loads into my Iframe OK, but after
> clicking on the alert, instead of the Google page loading, I get an error
> 'Permission denied'.
> 
> How can I fix this, please?
> 
> Tim in Ireland
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net
> 



More information about the Javascript mailing list