Online Shopping : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

33 of 106 people (31%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

permission denied while parent window reloading from child window

Apr 7th, 2008 23:38
ha mo, Abolfazl Shirazi, Manish Mishra,


Abolfazl Shirazi:
I tested your problem on my personal computer, but I didn't see any 
Script Error. Everything is OK when I reload parent window from child 
window.
I don't know what do you exactly mean.
Try these two HTML files in a directory:
parent.htm :
<html>
<body>
<p><a href="child.htm" target="_blank">Open Child Window</a></p>
</body>
</html>
child.htm :
<html>
<body>
<button onclick="window.opener.">Refresh 
Parent</button>
</body>
</html>
You can easily reload parent window from child window with this simple 
example.
Warning:
I guess that you reload your parent window from your child window, 
after closing parent window, therfore you see this script error.
If you open your child window then close parent window and after that 
try to reload parent window from child window, you will see this 
script error (Permission Denied). It is Probably why you see this 
Error.
Good Luck!
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com