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 have a problem on the links on my page im working.sorry guys still a noob and my english is not that good. :b. my question is like i have a list of packages of food. [link_a] [link_b] [link_c] and i have a function that i put in my head tag:
function linkA() { window.open('link_a.html','link','width=300,height=200,resizable=yes'); }
now i can go to linka.html by click my link <A HREF="javascript:linkA()" >link a</A> is there a way i can have one functions that can open a link depend on what page .when it clicks then go to its designated page or i have to stick on writing function for linkB ,C,D and so on.
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 trying to pop up a window and then do stuff(set flags) when the content of the new window is done loading. For this I am trying to detect the window.onload of the pop-up child window but so far I am unsuccessful. I believe my problem is that the URL of child window is on different domain, than the one of the opener(parent) so that the window.onload is not being called. Though this may change, at the moment I do not have access to the code for the page I'm opening up in the pop-up. Im pretty new to web development.
I need to open a popup window from a PHP site and pass in some parameters to use in the pop up window. I have the params in an input box and need to get the val of the box into a param and pass it to the new popup window. All pages are local and in the same folder. The id of the input box is 'ddutykey'. The name of the new window would be showduty.php if possible.
I've got this row of images (in the end there will be more rows of pics as well). When a user clicks on the image, I want a new window to open with a larger version of the image. I want that new window to be customized to the size of the new larger image. Also, when users go back to see other images in their larger size, I want the new window (assuming they never closed the first one) to come back to the front.
I've only gotten as far as getting the larger images to open in a new window at a set size in the function. I thought I could just make specific scripts for each image, but that would be cumbersome to say the least....
but what I need is, after the new window is popped up, the opener will be redirected to another page, I want the another page able to control the popup window is it possible? is there something like getWindowById.
Firstly I know this issue has been addresses a lot already but as a newbie to HTML and Web Development I am unable to get the idea. according to documentations and solutions proposed on different forums a popup or child window can be only closed using window.close() if it is opened via window.open() function.
The original window should not reload, but is, and I have tested it with both version 4.72 and 7.02, and they both do it. IE does not do it. The big problem is that the original window has security built into it so it must be called from the right referring url, but when Netscape reloads this parent window, it neglects to send the original referring url, so the original page is replaced with an error page as soon as the above link is clicked.
Is there any workaround for this, where either Netscape will not reload the original page, or if it does, at least not lose the referring url?
I'm using window.open to create a secondary window, and everything is working fine with that. My problem is that as soon as that window is opened, the parent window scrolls to the top of its page. So when the user closes the secondary window, they've lost their place in the parent document.
Is this normal behavior for window.open? Is there a quick way to prevent it, or is it more likely a problem with my Javascript?
I need to open a new window from an existing HTML page to a site in which we do not want to show the address for. I have set the titlebar to no but it will still place the title on the titlebar Here's my function code:
function myOpen() { window.open("http:// www.somewhere.com","mywindow","location=no,titlebar=no"); }
How do i close a specific window. (not the active one) with javascript. the reason im asking is because i have a form submitting to another page AKA TARGET_BLANK. but i have it target blank because that page checks if the stuff from the form can be inserted into the database.
BUT IF IT CANT, i give them a close(the active page) link and it closes the second page(that says oh u didnt fill in a title THE ERROR blah blah blah) so that the user can fix the first page(the page didnt reload itself or close so the information can stay and not be lost(form inputs, textarea texts etcc)
But what if the user submits a correct form and it says so on the 2nd page. and then close that page right AND THEN... theres the first page there left un touched. how can i get page 2 to close page one. with javascript.
Right now, I have multiple draggable windows on my site. The problem is, that only the most recently created box is draggable and I clicking the other box doesn't work.
Where you can click and drag different boxes. The problem is I don't know how to implement this. When the two boxes are up and I click on one box, it completly ignores the other box. I realize in my code I need to update widget1 but I'm not entirely sure how I can do that. I call the method below using: document.onmousedown=selectMouse; in my javascript
If it helps, the windows are all contained in a <div> tag with the id 'closewid' Each of the new windows that opens had the id "widget"+a number.
One of my programs in turn calls a new pop up window. The problem is that when the Pop up window is active I dont want any access to be possible to the parent window.It should still be visible behind the pop up window but I should not be able to work on the Parent window until the pop up is closed.
The ShowModalDialog() functionality is working only with IE.I need a solution that works both on IE and FireFox. Can any one provide me with a solution which works on Firefox browser also.
window.open() doesn't open an entirely new window in FF3.6, just a new tab
Edit: Yeah, ok, so if i specify a size smaller than the current standard window, it'll be forced to open a new window. but what if i want a new standard sized window to open entirely?
This is it- when i create the button code with HTML without script language on the page the button works well but when javascript code added is added to the page the button disappears. If i create the button with javascript it appears but does not open the next window.
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?
code to make this button work? In the parent window when 2 is input in the textbox and 'OK' button clicked, the second window opens with 2 textbox and 'SUBMIT' button. If 'SUBMIT' button is clicked in the child window i want it to open the new window.