Function Javascript close windows


(Xavi) #1

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

Thank you .

regards


#2

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

window.close();


(Xavi) #3

Thank you for your request …

Regards


#4

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


#5

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


#6

@Daniel Using Firefox on OS 10.13.1


(Darren Hayles) #7

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.