- 論壇徽章:
- 0
|
i need to perform a job today, that is to reload the parent window in the javascript generated from the servlet. there are iframes in the jsp pages, first i test the code directly in jsp like this :
it works.
so i just put the "parent.opener.parent.location.reload()" in the servlet code where generated the response stream and put javascript in. but it doesn't work. i don't know why, finaly i tried out, it must " parent.window.parent.opener.parent.location.reload();" , but i still don't know why i need to reference the parent window one more times. it's really odd to me.
can any one give me an answer?
本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u/4241/showart_103131.html |
|