473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to close a frame (*.htm) window

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
--
Paul G
Software engineer.
Nov 18 '05 #1
1 1679
"=?Utf-8?B?UGF1bA==?=" <Pa**@discussions.microsoft.com> wrote in
news:3F**********************************@microsof t.com:
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
();">
--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Irvin Amoraal | last post by:
Process: I have a form which uploads a file from client to server written in PHP. When the user presses the submit button, I use the "onSubmit" event to execute javascript to open a child window...
6
by: Sujan | last post by:
Hello all, Help me! -------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script language="JavaScript"> <!--
0
by: EMW | last post by:
Hi, In my ASPX program in a OnClick event another IE window is opened to show the user some information. I have smartnavigation enabled to reduce the flickering and now I get an error. This...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
1
by: Chinna10 | last post by:
Hi, I want close sub windows when i log out from main window or close the main window. I need to write the code in pop up window. That pop up has been in ore than 2 parent windows. how to...
1
by: dummy07 | last post by:
Is it possible to close a modal window from the parent window??? Please help..
1
by: dittu | last post by:
How to close the popup window when submitting the form? I have a sample.jsp. In that page one button is there. when button pressed, open popup window contains one "text box" and one " submit...
8
by: ismailc | last post by:
Good day, I need help. I have an html button that calls & open another browser window on the onMouseUp event, but once I close the popup new browser window my button has focus & is like selected....
2
by: rkyakkala | last post by:
Hi, i am creating a popupwindow example.After entering the details i want to close the parent window(details.html)as it is moving to new window.could anybody suggest how can i do both task at a time...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.