473,326 Members | 2,113 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,326 software developers and data experts.

how do i pop a window once i close the current one using the X button?

what is the condition if i want to pop a new window once i close the current one? is it..?
Expand|Select|Wrap|Line Numbers
  1. if window.close
  2. {
  3. window.open("abc.aspx", "abc", 'toolbar=0,scrollbars=1,location=0,statusbar=yes,menubar=no,resizable=no,width=800,height=220,left=100,top = 145');
  4. }
  5.  
i've tried it. but it didnt work.
Jul 16 '07 #1
6 1507
gits
5,390 Expert Mod 4TB
... you may use the 'onbeforeunload'-handler of the current document-body ... but i hope you don't want to create such an annoying popup-cascade ... ;))

kind regards
Jul 16 '07 #2
what is the condition if i want to pop a new window once i close the current one using the X button on the title bar (minimize, restore, CLOSE)? is it..?

Code: ( text )
if window.close
{
window.open("abc.aspx", "abc", 'toolbar=0,scrollbars=1,location=0,statusbar=yes,m enubar=no,resizable=no,width=800,height=220,left=1 00,top = 145');
}


i've tried it. but it didnt work.
Jul 16 '07 #3
gits
5,390 Expert Mod 4TB
what is the condition if i want to pop a new window once i close the current one using the X button on the title bar (minimize, restore, CLOSE)? is it..?

Code: ( text )
if window.close
{
window.open("abc.aspx", "abc", 'toolbar=0,scrollbars=1,location=0,statusbar=yes,m enubar=no,resizable=no,width=800,height=220,left=1 00,top = 145');
}


i've tried it. but it didnt work.
have a look here ... you double posted it ...

your other tread

kind regards
Jul 16 '07 #4
have a look here ... you double posted it ...

your other tread

kind regards
i was asking for the X button on the title bar. i didnt think your answer answered my question. thanks again
Jul 16 '07 #5
gits
5,390 Expert Mod 4TB
the 'X'-button closes the window ... so isn't it the same? ... explain the difference ... and when there is no difference ... then an answer to one question is the answer to
the other question too ...

the mentioned event within your other thread is to be implemented in the document-body ... and it will do the job when the window is getting closed ... whatever way this might be done ... you cannot ask for a specific button to do that ... in case that this! is your question ...

kind regards ...
Jul 16 '07 #6
acoder
16,027 Expert Mod 8TB
have a look here ... you double posted it ...

your other tread

kind regards
No longer another thread. I've merged the two threads.
Jul 17 '07 #7

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

Similar topics

10
by: Scott | last post by:
I'm new to ASP, but I've been programming in VB for several years, and I'm having a few issues with this ASP enhancement I'm working on. I've found ASP to be a lot different than what I'm use to...
6
by: chon | last post by:
I have an ASP page that is sent a file location as a parameter. It opens this file, loads the ADODB.Stream object and does a binary write to the page forcing the download dialog to appear. This...
1
by: Lisa | last post by:
I have a Perl script that's called as a CGI to handle the form submission from a browser, thru which a user from the web can up load an image file. I would like, when the user clicks the "Send...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
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...
1
by: Garg | last post by:
Hi, I am facing a problem while trying to close a window that I've opened in a frame. I am using javascript to close my current popup window. I have written the following line of code on click...
2
by: wreed06 | last post by:
Hello, I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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: 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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.