Skip to Content

WEBGUI : auto close window after logoff

Our intranet with SAP Netweaver portal we use some URLs to several SAP transactions via webgui.

I want to close automatically the window when the user clicks on the log off button.

The configuration of this service Z_WEBGUI_UWL I put as logoff page the following html code into the body

Our intranet with SAP Netweaver portal we use some URLs to several SAP transactions via webgui.

I want to close automatically the window when the user clicks on the log off button.

The configuration of this service Z_WEBGUI_UWL I put as logoff page the following html code into the body

<head>
function closeWindow(){ alert... window.open('','_parent',''); window.close();}
</head>
<body onLLoad="closeWindow();">
You can remove your login information by closing all Internet Explorer windows
<P>
<input type="button" value="close window" onCClick="closeWindow();">
</body>

The javascript code closeWindow is executed because the message 'function' appears (alert statement) but the window is not closed when the page is loaded. Also same when you click on the button Close. WHY?

The same result with a redirect URL (redirection to a page that should close the window, but it does not work).

Is there an other possibility to close the window automatically?

Best regards

Luc

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 22, 2008 at 12:38 PM

    Maybe it´s too simple, and maybe the problem isn´t even on your list any more, but have a try with top.window.close() - there´s an issue with window.close() not working with framesets.

    regards, Bastian

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.