Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Iframe Permission Denied


  • From: javascript at mattbarton.org (Matt Barton)
  • Subject: [Javascript] Iframe Permission Denied
  • Date: Thu Aug 25 05:45:31 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@xxxxxxxxxx
> 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
>