Hi,

On Mon, Jun 3, 2019 at 1:44 PM zahir.kali <zahir.k...@amdm.fr> wrote:

> Hi,
>
> I have a WebPage with an "Close" button. I would like to close the current
> page on pressing the close button.
>
>
>
> I tried with JavaScript function (see link
> http://blog.e-svet.si/2013/05/closing-the-browser-window-from-wicket/) but
> as the page is opened by Wicket, the browser forbids close the window by
> using "window.close();".
>
> Are there any way to do this using wicket ?
>

Wicket doesn't do anything here. It is plain JavaScript. So better search
for javascript solutions in the web.

Try with this trick: open(location, '_self').close();
This triggers re-opening of the current page with a script and then
immediately closes it.


>
> Thanks
>
> --
> Sent from:
> http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to