Keep Pop-up From Opening In Same (opened) Windows?
Jan 22, 2011
I have a function that opens a new window when the link is clicked. The pop-up window contains a customer's info. Each time I click the link, my pop-up is opening in the same (popped-up) window, but I'd like it to create a new window each time.
View 1 Replies
ADVERTISEMENT
Jul 20, 2005
how can I remember all windows I opened to close them with one click on a
button? (btw: do arrays exist in Javascript?)
View 5 Replies
View Related
Oct 27, 2004
I have opened a window in javascript with:
mywin = window.open(blahblah);
To keep myself from reopening the window everytime i do a click, i changed it to this:
if(typeof(mywin)=='undefined' || (more conditions here))
{
mywin = window.open(blahblah);
}
The problem is: variable "mywin" is lost after i REFRESH the current page. Since i'm doing a LONG, LONG inventory management (where the opened window is about 200K long), I want to know how I can access the opened window. I tried searching the web, but as far as I know there isn't any "list of windows previously opened by this one" method or property.
I've managed to do it with a setTimeout function on the child window that calls another function of the parent window every 1/2 a second. Code:
View 2 Replies
View Related
Aug 3, 2011
I am trying to modify with jQuery the content of a child window but for an unknown reason it does not work. I would be gratefull if someone may explain what (how) happend. Here is my code:
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// Open a new window with a bare html file
var newWindow = window.open
[Code]....
What I expect (you should already have understood) is a new div to be appended to my child window body. The div (and its text) is effectively inserted (in new child's window) but then disappears in the process. Once I look at the generated code, the div is not in child's DOM.
View 4 Replies
View Related
Jul 6, 2009
Unfortunately I don't know a great deal about javascript. I have used some to construct a collapsible menu on this site : [URL] Unfortunately what it doesn't do is close the previously opened menu item on opening the next. I hope that makes sense. Is there a onclick behaviour I can add to the li's to close any open list items. I downloaded the files and tutorial from here: [URL]
View 2 Replies
View Related
Dec 17, 2006
I have a company web site where I wish to open a search window with javascript. I do know and have used the window.open( for this.
The window that is opened provides a search function an returns a list of results as hyperlinks. I then want the user to be able to select the link from the list and when the link is clicked the 'poped' search window closes and the hyperlink reference be displayed in the window which referenced it in th efirst place.
View 3 Replies
View Related
Mar 23, 2007
Hi I managed to find a way of opening a PDF in a new window using JavaScript.
I warned the user beforehand and opened the new window at 80% height and width of the original window to show it was a new window.
However I can't seem to control XLS, DOC, RTF documents. These are the issues:
1. Firefox: They always seem to open in a new window anyway.
2. Firefox: Firefox opens a blank window as well when the JavaScript is used.
3. IE and Firefox: I can't seem to control the height and width
View 1 Replies
View Related
Nov 18, 2006
How can I make this script I generated with HomeSite, open links in new
windows/tab instead of the same? ....
View 4 Replies
View Related
Feb 18, 2011
I am opening a new small window through javascript.
Here is the code:
But on the same page I have another link for a new window which is essentially the same code:
As you can see in the red text, one link should open map.asp and the other should open pofull.asp... but they BOTH open in pofull. So I have tried to change the function name for one of them but then it doesnt work at all.
I have tried everything to separate the two scripts but nothing has worked.
View 2 Replies
View Related
Nov 3, 2010
I have a JavaScript that allows you to open 5 additional windows when you click on the button. It works properly when using Mozilla, but when you use IE7, only 1 window pops up not 5.
Code:
View 3 Replies
View Related
Jul 20, 2006
I have problems with opening new windows in IE6, in Firefox and Opera it is working fine, but IE6 gives warning and open only one link. Code:
View 1 Replies
View Related
Feb 26, 2003
I have a question about opening new pages when a link is clicked on a webpage. What I want to happen is this:
On the main webpage, I would like to have links to other websites. For example:
Link 1
Link 2
Link 3
Now, if I was to click links 1,2 and 3, I would have 4 browser windows open: The window containing the original webpage, plus the 3 windows that were opened by clicking on the 3 links. (I am using a href="www.,,,,," target="_blank"></A>)
Now, what I want to happen is this, I only want the mainpage to have ONE child window so that at any given time, there will be at most 2 browser windows open, the main page window and one child that is opened by clicking on a link. If I click on Link 1 followed immediately by Link 2, I don't want 2 child windows to pop up. What I need to happen is when I click Link 1, it needs to open a window. When I click link 2, the browser window that contains the webpage from link 1 now needs to show the webpage that from link 2. Is there a way to do this using javascript window.open? Code:
View 1 Replies
View Related
Jan 5, 2010
i m making a web app. after login i want the app run in a 1280*800 size window. i saw many tuts on how to make a popup window but what i don't get it where should i post the code? in the login page or the main home page and so on?
View 3 Replies
View Related
May 19, 2010
Doing a bit of window-opening: the idea is, when a link is clicked, it selects a random one from an array of urls, and then opens it with certain toolbars missing. Got a script for each part, but not sure how to combine them: 'location' seems to be talking about different things in each script.
the random script:
var single = new Array ("a.htm","b.htm","z.htm")
function choose(){
window.location=choose[Math.floor(Math.random()*single.length)] }
[code].....
View 2 Replies
View Related
Oct 15, 2010
I am working on an application (for internal company use) that is meant to be viewed over three monitors. I'm wondering how to accurately position windows on the secondary and tertiary monitors. If they all have the same resolution (say 1280x1024), can we assume that the second monitor begins at 1281, and the third begins at 2561?
View 2 Replies
View Related
Aug 4, 2011
I am currently designing a website for our public library. I have added a card catalog search bar on the side of every page. Our catalog software company has supplied the code. After embedding it, I previewed each page to make sure it was working properly. At the time, it worked fine. Since then, I have added other elements to the homepage such as a Twitter feed and a Flickr slideshow. Now, when I attempt to search in the catalog search bar on the homepage, it opens two tabs, but only in Firefox.
Our IT person from the software company suggested I make a copy of the page and strip the code down to see what the problem is. After doing this, I have made no headway. Even with the catalog as the only code left on the page, other than text, it still opens two tabs.
[Code]...
View 3 Replies
View Related
Apr 13, 2010
My computer seems to have problems with its javascript when opening new windows from certain sites that are either audio or video files. I simply have not got a clue where to begin.
View 3 Replies
View Related
May 25, 2006
This is my first post to this forum. When a button in parent window is clicked multiple times, more than one popup window is opened. This problem is occurring in linux firefox and mozilla browsers. In windows the code is working fine. Is there any option in window.open() method to open a popup window once. s there any known issue regarding this case?. Need a workaround to fix this issue.
View 1 Replies
View Related
May 24, 2006
hen a button in parent window is clicked multiple times, more than one child window is opened. This problem is occurring in linux. In windows the code is working fine. Is there any option in window.open() method to open a child window once.
View 8 Replies
View Related
Apr 6, 2010
below is clickunder code , but it open under windows when visitor click everywhere on the pagei need it be speacial for links , whenever visitor click on speacial link , it opens windows
<SCRIPT LANGUAGE="Javascript">
function PopShow3() {
CookieTest=navigator.cookieEnabled; if(CookieTest)
[code]....
View 5 Replies
View Related
Jul 23, 2005
I have a parent window that pushes a new window object onto an Array
with the following code :
OpenChild()
{
//totalNumWindowsCreated is global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
childWnds.push(window.open(link, "child" +
totalNumWindowsCreated,"dependent"));
..
..
..
}
This pops up a new window with every call. In the child window I call
a parent function onbeforeunload, appClose() :
function appClose(){
if (window.opener && !window.opener.closed){
window.opener.CloseChild(getQueryString("application"));
}}
This is in my frameset tag of the child code :
<frameset ... onbeforeUnload='appClose()'>
The window.opener.CloseChild() function is called perfectly when I have
one child window open, but as soon as I create another child window
both of the open child windows don't ever call it. They do both go
into the onbeforeunload appClose() function, but do not call the
window.opener.CloseChild() function inside of this routine.
Anyone have any ideas why when I have two child windows open I can't
access the window.opener functions?
I have tried taking each new window out of the array and used the
following code in CloseChild() :
CloseChild()
{
//win and totalNumWindowsCreated are both global
totalNumWindowsCreated = totalNumWindowsCreated + 1;
var win = window.open(link, "child" +
totalNumWindowsCreated,"dependent");
..
..
..
}
View 1 Replies
View Related
Jun 3, 2009
I am doing a chating application.I want to know whether a window is opened or not. This is the code i am using to open a window.
var title='Chat_'+userId+"_"+selectedUserId;
var url="OneToOneChat.aspx?FromUserId="+userId+"&FromUserName="+userName+"&ToUserId="+selectedUserId+"&ToUserName="+selectedUserName;
window.open(url,title,'width=410,height=400,toolbar=no,menubar=no,scrollbars=no,status=yes',false);
later i trying whether the window is already opened or not.
[Code]...
for win.closed it is giving javascript error like "closed is null or not an object". I am using IE7.
View 2 Replies
View Related
Jul 23, 2005
I used document.readyState to check the document state, but it gavem access is denied error at that line. is there any other way to do it?
function wackOpen(){
my_window1=window.open('http://www.yahoo.com','','left=20,top=20,width=2,height=2 ');
//my_window1.location="$send_sms[0]";
my_win_status=my_window1.document.readyState;
....
.....
}
View 2 Replies
View Related
Jul 20, 2005
i have popup window that maybe covered by other windows or minimized how can i use javascript to check for existence of a window named "AAA" and if exist open and raise it to the top of the stack so that its becomes viewable ?
View 1 Replies
View Related
Jun 22, 2009
How to close window when it is opened under a tab?
normally....window.close() will work for a single window
View 2 Replies
View Related
Jul 26, 2006
I am opening one new window using open.window() function.
Suppose if user minimize that window then how i can show blink on that window if any event occuir on that window....
I do't want one more pop-up for user its not user friendly....
View 12 Replies
View Related