hi good morning.. is my function for EXIT is corrcet? Thank you

<form><input type="button" value="exit"onclick="exit=false"></form>

Recommended Answers

All 7 Replies

What is it you are trying to do?

trying to create an exit button... but not working ... only manage to create button...

You mean something like this?

<input name="Exit" type="button" value="Close Window" onClick="window.close()">

will this work ?
echo '<BUTTON onclick="window.close();">Close me.</BUTTON>'

<a href="#" onClick="window.close()">Close</a>

But is there a way to avoid the confirm dialog box in IE while using window.close ?
And, window.close doesn't work in FF :-/

window.close only works for child windows that were opened by your application. If you're application didn't open the window then yes it will not work in ff and you will be prompted in ie, otherwise it works smoothly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.