Pop Up Window Will Not Obey A Close Command From Original Page.
Jul 20, 2005
i have a form, and for the user to upload a file, i use window.open with my upload script. however, after the file is uploaded, i want the filename to be put back on the original page in an input text field. how would i go about doing this?
to create a hyperlink which closes the window. However with pages which display data retrieved from a database using PHP i use a form to submit a search on the page which displays results. At the bottom of the page is the close window link, however it fails to work once a form has been submitted on the page. It only works when the page first loads.
Any ideas guys on how i can get a close window option that works on my results page after submitting a search?
I have the following problem:
For my application, I need to ask a confirmation when the user closes the browser-window. If the answer is positive, I would like to log-off the session and close the window. If the answer is negative, I would like to stay back (no logging-off, no closing the window).
I can't do this in the window.unload event because the window is already closed when the unload event is fired. I tried doing this in the beforeUnload event. But the beforeUnload event gets called even when I refresh the page and in that case, I don't want to ask this question or logoff.
Ok so I have a site that I want to automatically close the window when the focus is lost from the page. For example, if the user clicks off the page to something else on there desktop I want the page to close. So far I have managed to do this but the grids on my page and the scroll bars all trigger the close function when clicked on. Is there anyway to make the scroll bars and drop down boxes not trigger the function?
I have a HTML and I am opening another link in a separate window using window.open() . The child window is something like 'http://yahoo.com' which is out side html. I need to refresh the parent window when the child window is closed.
open to a new window in the original window. the original window is blocked from any user inputs. a good example is here at [URL] and click on "locations" button. is there a special name for this window.open?
Opening a new window using the window.open( ) command works great for opening new windows and having them on top and having the focus. The window.focus command brings any existing windows to the front (top) in Netscape, IE and Opera. However, this command does nothing when you access the web page through AOL, even though they say this is IE. Once a window is behind (blurred), I have been unable to bring it back to the front without 1. closing it, and 2. re-opening it, which stinks.
The exe runs in a dos command window, tied to a Citrix ica file.
- I have a button on my Flash site that opens an HTML page in a popup window. In Flash, I open the new window using Actiosnscript 2.0:
- Within the popup window are links to other HTML pages. They all open in the same window. I've been using the following to create the links in Dreamweaver:
- On each page, I have a "Return to Main Menu" button that should close the popup window. To do this, I have been using:
- The problem is that it works differently in each browser, and I can't even get it to consistently close the window in most browsers:
Internet Explorer = popup message appears, asking "Are you sure you want to close this window?" or something similar; window closes after clicking "Yes."
Safari = Only closes if I'm on the original HTML page. If I click on any of the other links (note that these all open in the same window), those pages' "Return to Main Menu" buttons cease to work. However, if I keep clicking "Back" until I get to the original page, it closes.
Opera = Button actually works for each page.
Firefox & Chrome = Does not close the window at all.
I looked into it and saw that others have used a window.opener to solve similar issues. But, since my popup window is opened using Flash/AS2, I need to find a way around it.
I've tried preceding "window.close()" with "window.opener=null" (i.e. -onClick="window.opener=null; window.close()"), but I don't think I'm doing it right because it still doesn't work.
I've also seen others use codes that involve functions and variables, but it is beyond my current coding knowledge to implement this. Like I said, I'm sort of new at this.
I read about window object and specifically about creating popup windows. The code below produces a popup window when a link is clicked:
I would like to add a "Close Window" button on survey.html page and when that button is clicked, the window would close. How do I do that? I know that I should use (reference to popup window).close(), but how and where do I attach even listener to that button?
There's some command I forgot that you can type into the address field of a web browser that will cause it to display the source code for that page instead of the page itself. Can anyone tell me what it is? It's something like:
viewsource:http://mysite.com or view:http://mysite.com or source:http://mysite.com