Right now I'm using a button to quit my app in the tab. I haven't found a way to completely close the tab. The way I do it, is using the HTML5 object. User clicks button, open blank tab. Is there anyway to close the tab when the button it clicked? Like you're clicking on the "X" on the tab?
Closing an App?...
Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.
Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!
Clickteam.
-
-
It is not implemented as a native function, but very easy to do with the HTML5 object.
All the actions in the Javascript section of the HTML5 object's actions.
HTML5Object : Reset parameter list
HTML5Object : Add string parameter "window.close()"
HTML5Object : Call Function "eval"Warning : some browsers will only accept to close the window when you actually click on something, so the event line should begin by "Button clicked" ou "Mouse key has been pressed"
-
Francois, can you put together an example please. I don't understand the above. I am using a button. Thank you....
-
John boy:
Conditions / Actions
Button Clicked:
- HTML5 Object: Reset Parameters
- HTML5 Object: Add String Parameter "window.close()"
- HTML5 Object: Call Function "eval"That will close the current tab...
-
Thanks Danny,..I'll give it a shot..!
-
Zut alors! How come you understand Danny better than I, as we have written exactly the same things! Must be my French accent on the keyboard
Argh I see, he added "Button clicked". Should have though about it. C'est la vie! -
LMAO,..No,.i still don't understand it. I also haven't tried yet either. Sorry about that guys.
-
Well, guys gave it a shot and it don't work,.unless I have something wrong. See picture.
-
Odd. This works for me...
-
Danny, do I have the actions correct in the picture? Let me ask you this, if my actions are right, does this only work when the app is final built? I tried from build and run and it doesn't close the tab. I'm using Firefox.
-
Reported it to bug tracker...
-
My game "Slot Tac Toe" was originally written for Android and is in Beta on the Google Play Store. I decided to also publish it in HTML5 so this is my first use of the HTML5 exporter. I found this thread because I was working on getting my "Quit" buttons to close the browser tab. Your Javascript worked like a charm using Ctrl-F8 however it did not work in Chrome Version 38.0.2125.122 . It did work in IE11, but not in Firefox. I am using R283.3. Got any ideas?
-
I dont really understand, sorry....
-
Using the javascript commands ie window.close() in the HTML5 object to end the game and close the browser tab works in Fusion using Ctrl-F8 to test and in IE11. It does not work in Chrome and Firefox.
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!