[Javascript] Iframe Permission Denied

SkyScanner skyscanner at eircom.net
Thu Aug 25 05:06:53 CDT 2005


<!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




More information about the Javascript mailing list