473,321 Members | 1,708 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,321 software developers and data experts.

onClick="window.close()"

Should this close the window, or have I missed something simple?

Todd

<html>
<head>
<title>Test close</title>
</head>
<body>
This is a test on the closing of a window<br><br>
<input name="btnClose" type="button" onClick="window.close()"
value="Close">
</body>
</html>
Nov 23 '05 #1
2 14606
VK

Todd Cary wrote:
Should this close the window, or have I missed something simple?

Todd

<html>
<head>
<title>Test close</title>
</head>
<body>
This is a test on the closing of a window<br><br>
<input name="btnClose" type="button" onClick="window.close()"
value="Close">
</body>
</html>


<http://www.jibbering.com/faq/#FAQ4_14>

It is a sample of a bad English but if you read through I'll find the
answer.

Nov 23 '05 #2
Thank you...only created windows!

VK wrote:
Todd Cary wrote:
Should this close the window, or have I missed something simple?

Todd

<html>
<head>
<title>Test close</title>
</head>
<body>
This is a test on the closing of a window<br><br>
<input name="btnClose" type="button" onClick="window.close()"
value="Close">
</body>
</html>

<http://www.jibbering.com/faq/#FAQ4_14>

It is a sample of a bad English but if you read through I'll find the
answer.

Nov 23 '05 #3

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

Similar topics

2
by: Franklin P Patchey | last post by:
<P><A style="COLOR: rgb(0,0,0); FONT-SIZE: 80%; FONT-FAMILY: 'Comic Sans MS', cursive; TEXT- ALIGN: left" href="javascript:self.close();"><FONT size=4><STRONG>Close this...
1
by: Nick Messick | last post by:
I'm going through some old code and have found this a number of places. Seems kind of strange. Is there any reason why someone would do this?
2
by: D | last post by:
I don't know much about this. Clients want a new "printer friendly" page to open when clicking on a link. I think it can't be done in a way that won't trigger the common pop up blockers out...
4
by: Roger | last post by:
Hi, I have been using this trick for some time on a home page. The idea is to verify the user's browser has Javascript enabled before allowing the user to access a logon page. The...
3
by: JohnEGee | last post by:
Hello, all, and TIA for any help you can offer. I've searched the Internet for answers and have finally come here. I've created a page (several, actually) with a link that opens a pop-up...
5
by: lindanr | last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the <body> tag. When I click on the window's scrollbar, the window closes. The same code works fine in ASP.NET 2003. Any...
4
by: jodleren | last post by:
Hi all I have a file I open in a smaller window, like this: <a href="#" onclick="window.open.... but it also causes the main window to jump to the top. What have people done to avoid that?...
1
by: rozx | last post by:
how to pass input value form a page into a database using this onClick function. <input type="button" name="save" value="SIMPAN" onClick="save_all()"> i've tried a few times, each time i click the...
2
by: ejrfigueiredo | last post by:
Hi, Is there a way to get a script function to save a page without the execCommand (which works on IE but doesn't on Firefox). Below there's the code I'm using, I took it from a template page...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.