how to close a frame (*.htm) window

G

Guest

Hi I have a frame and have a logg off button that I want to close the window and end the application. Since it is a frame not quite sure how to do this? Tried
<script language="javascript" event="onclick()" for="btn_logoff">
window.close();
</script>
but did not seem to work.
thanks
 
L

Lucas Tam

Hi I have a frame and have a logg off button that I want to close the
window and end the application. Since it is a frame not quite sure
how to do this? Tried <script language="javascript" event="onclick()"
for="btn_logoff">
window.close();
</script>
but did not seem to work.
thanks

Try

<input type=button value="Close Window" onClick="javascript:window.close
();">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top