Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to close the browser on button click?

ZKayMay 25 2011 — edited May 30 2011
Hi,

On a HTML page, I have a button labeled as "Close". When user click the button, I want to close the browser. I am using Apex 4 with 10g.

I created the following process which I call on pressing the close button:
BEGIN
htp.p('<body>');
htp.p('<script type="text/javascript">');
--htp.p('window.opener.doSubmit();');
htp.p('window.close();');
htp.p('</script>');
htp.p('</body>');
END;
But it shows the below in the browser instead of closing it.

Location: f?p=17638:9:3591448756041585::NO

Any wayout?
Thx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 27 2011
Added on May 25 2011
11 comments
2,567 views