I built an html5 application using jquery and Qt but i have no idea how to add a close or exit function to the application.
Printable View
I built an html5 application using jquery and Qt but i have no idea how to add a close or exit function to the application.
What does the JavaScript function window.close() do for you?
I have tried : "<a href="" onclick="window.close();"> Exit</a>" but nothing happens. I'm i using it correctly?
Try
[code]<a href="javascript:window.close()">Close Window</a>[/code]
or
[code]<form>
<input type="button" value="Close Window" onclick="window.close()">
</form>[/code]
Thanks for all the help but I did solve my problem.