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

disable Close(x) icon script using java script

Hello,
I wnat the code , how to disable the Close(x) icon script using java script . is there any event that can be used to prompt the user before closing the new window.
Oct 31 '07 #1
6 2778
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

Yes, you can use onbeforeunload. You should only use this for pages which are part of a web application where users may lose the information they have entered and the changes they have made.
Oct 31 '07 #2
dmjpro
2,476 2GB
Welcome to TSDN!

Yes, you can use onbeforeunload. You should only use this for pages which are part of a web application where users may lose the information they have entered and the changes they have made.
Remember "onbeforeonload" does work with Opera.

Debasis
Oct 31 '07 #3
dmjpro
2,476 2GB
Welcome to TSDN!

Yes, you can use onbeforeunload. You should only use this for pages which are part of a web application where users may lose the information they have entered and the changes they have made.
Remember "onbeforeunload" does work with Opera.

Debasis
Oct 31 '07 #4
acoder
16,027 Expert Mod 8TB
Remember "onbeforeunload" does work with Opera.

Debasis
You mean "doesn't work". It's not needed anyway because the scripts continue to run in Opera as far as I can recall.
Oct 31 '07 #5
dmjpro
2,476 2GB
You mean "doesn't work". It's not needed anyway because the scripts continue to run in Opera as far as I can recall.
The feature is added or it's added already?

Debasis
Nov 1 '07 #6
acoder
16,027 Expert Mod 8TB
The feature is added or it's added already?
Opera remembers the script runstate, so it's as if you never left the page when you come back to it. That's why onload and onunload does not fire when you use back and forward buttons.
Nov 1 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Stephen | last post by:
Hi, How do I disable the enter key for a "Form"? so that user has to click the "Submit" button. Is there a way of doing it other than using Java/VB script? Thanks, Stephen
3
by: Paul | last post by:
Hi, just wondering if there is a way to disable the back button of the browser as I have a logoff page and would like to not allow the back operation? Guessing there may be a way to do it through...
3
by: krishna | last post by:
Hi, I would like to disable the close icon on the form which will be available at the right most corner of the form in VB.NET which property i have to set. Regards, Krishna.
7
by: Toccoa | last post by:
After considerable googling - I mean searching with Google(r) - I could not find javascript on a button or <a href=... to close a window in the latest versions of IE and FireFox. There seemed...
15
by: Mahernoz | last post by:
Hi Friends, I simply want to print a report by opening a popup, calling the print function and closing the window after the user has printed the report. I have 2 functions.... in c# The...
1
by: jagan1976 | last post by:
I want to disable close button for each report and it would apply to all users. Is there any script or method available which will disable close button for all reports at once without using...
10
by: dkyadav80 | last post by:
<html> /// here what shoud be java script for: ->when script run then not display all input text field only display selection field. ->when user select other value for institute only this...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
I am looking for a java script to close a web form that I can attatch to a button click event. I am using vs2005, c#. Thanks -- Paul G Software engineer.
0
by: Ha Nguyen | last post by:
Hi all, I am developing a web site which provide some information using PDF. Is anyone know to disable/hide the tool/menu bar of PDF app when viewing PDF using IE/FireFox in Java? I mean that...
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...
1
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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: 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.