Function Javascript close windows

Hello Iam a new user of Hype.
I need to know the function of a botton to close a window.

Thank you .

regards

You would attach this JavaScript to a button using Hype’s JavaScript editor:

window.close();

Thank you for your request …

Regards

Hello!
I tried this @Daniel but am not having any luck? Any ideas?
WindowClose.hype.zip (43.1 KB)

This works for me in Chrome and Safari – in what browser or device is it not working for you?

@Daniel Using Firefox on OS 10.13.1

By default Firefox has the following setting in it’s config file:

52

Unless you get all your users to change this then I think it is a no no.

If anyone does find a solution i’d also be grateful to know it also.