I have a page with 3 iframes it has a link to open up a page and when the user clicks on a link on that page - I want the new page to close and the link to open in the second iframe on the original page
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.
I need a script that will open a new window (popup / new link) in a specific size, but will also close the old window (where the popup came from). I know the popup window is easy but finding a work-able close window script as the new window is opened is impossible!!
I am encountering a problem where I have a window and there are three frames, one in the left, right and in the bottom. The bottom most frame has common submit buttons. There are several tabs in left frame. Each one loads a different form on the right frame. After fetching the contents of the form from user, I am validating the text fields in the form using onChange() event handler. After entering the text value in the textbox, if I press Submit directly, the "Submit" as well as the validation routine happens concurrently. Only at the end of validation, the field is marked as dirty. Now, if field is not marked dirty, the Submit function will close the window without actually submitting as nothing was changed. So when an invalid value is entered and the Submit is pressed directly, an alert pops up temporarily but the close() call from the parent frame immediately closes the alert window before user can respond. This problem does not occur in IE as in IE, unless the alert window is responded, the close() call cannot close the alert window. Code:
This is my first post in this forum, sorry if im doring anything wrong. I want to add a javascript panel to my site... I have all the js and CSS code, and this works fine. But isnt it possible to do so when you press "Menu 1" then the panel opens+it links to a nother page... something like this <a href="index.php">Menu 1</a> ??
I have tried to code it myself for a few days now... And searched the net for ages, but cant find anything.
I have 3 links that are clickable... And what I want to do, is when 1 anchor tag is open and the user clicks on a different link, it closes the previous link and opens the clicked one. Here's a link to the working page to see my example: Example Site on Temp server The green buttons on the right hand image are the clickable links and these are the ones I want to add the final animation to. Click on one link, then click on another.
I have a page with 4 frames in it. If I click on a button in the 4th frame, a new window has to be opened and the value of the listbox in the 3rd frame hoas to be passed .... My code works fine in IE, but doesn't in Netscape .....
First, the value of the listbox .... I try to get it with parent.frame3.form.listbox.value ... But an alert of this (as a test) does nothing .... I tried several combinations like parent.frames[2] and parent.frames[frame3] but nothing happens ...
Another problem is that the frame4 is blanked ... strangely enough ... I'm just doing window.open('blablabla');
How do I force a window, pened alone, to be displayed in its frame set?
tried this:
if (parent.location.href == self.location.href) { window.location.href = '../' }
the problem is that the original page is replaced by the main.htm page (the default page for the 'main' frame)., because the open event of the menu page calls for the main.htm to be loaded. Is there a way that I could pass a page name as an argument to the index page at all? Something like window.location.href='index.html?Loc=IT_Study___In formation.htm'
Can I get javascript to open a window and close it, without a user seeing it? Basically, I want to open a site, so it downloads and sets a cookie before I display a link for a user to click on.
client wants for a window with no toolbars to open (technical and 'esthetical' reasons) after the window, user clicks on, is being closed.
I told them about security settings in browsers and no cross-browsers solutions and all of that we know, but they have told me they have seen that before and how then the annoying pop-up windows work? . . .
I have 4 images on a page and when someone clicks on one of them I open a secondary window and write a few lines to it describing the image.
If they don't close that secondary window however, and click on another of these 4 images, my write commands print further down on that secondary window.
I was reading through an old javascript book that talks about the win1.document.clear(); method, but information on the Internet tells me that this is now obsolete, or was just working on Netscape.
So then I decided to close the secondary window before re-opening it. But if the user _did_ close the secondary window, I get an error saying that the window I'm trying to close is already closed (or doesn't exist to be exact)!
Is there a way to clear the document in a window that I opened and wrote to? Or is there a way to detect if win1 exists or not? If it exists, I would close it. If it didn't exist, I would just re-open a new one.
In the onclick event I want to close the current window then open'ConfirmPage.aspx'. Whats the best way to do this? Can I close the first page then open the next, or should I be redirecting? If so whats the best way to redirect using javascript?
I have a popup that submits a link. After the link is submitted, I want the user to be able to close the popup and go to the submitted link in one click. How can I do this.
I have my reasons for using popups, it's hard to explain. Please don't tell me how bad popups are, I know they're bad.