Window.open(), Can I Get New Session?
Jul 23, 2005Using window.open(), the exec'd child window shares session information with
the parent. Is there a way in JavaScript to exec a new browser window that
does not share?
Using window.open(), the exec'd child window shares session information with
the parent. Is there a way in JavaScript to exec a new browser window that
does not share?
I have the following code:
[Code]...
I want the lightbox window open only once a day for every unique visitor on my website. I understand I should use some sort of cookie implented, but I dont really understand how to.
I have this piece of code which is opening link in new window:
How to change this code so link would open in the same window?
Probably I should change this part: javascript:void window.open
In my application i am allowing only 3 admin users at a time to log in to the application.In case where one of the admin user directly closes the window or tab without signing out i need to invalidate the session or need to decrement the number of admin users who has logged in.
View 6 Replies View RelatedI 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.
How to open a link on the same window using window.open or any other method in JavaScript.
View 2 Replies View RelatedI 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.
View 4 Replies View RelatedCode: window.location but have it open in new browser window (like with target="_blank", not window.open)
View 7 Replies View RelatedThrough window.open or window.showmodaldialog, I want to open a word
or excel document in Print Preview mode. Bcos I don't want the user to
make any changes or save it but the user can ONLY VIEW OR take a print
out.
I'm using an <A> tag with an onclick event to open a window with JS (window.open)... In FIREFOX, if I click very quickly, multiple windows open. Not a problem in IE.
View 8 Replies View Relatedmy file is located at c:AdminFiles.xml
i tried the following ways
window.open("c:/AdminFiles.xml",'HeavyXml');
window.open("c:AdminFiles.xml",'HeavyXml');
window.open("c:\AdminFiles.xml",'HeavyXml');
in the above i'm getting the following error: "Firefox doesn't know how to open this address, because the protocol (c) isnt associated with any program"
window.open("file:///c:\AdminFiles.xml",'HeavyXml');
the last attempt give to respond at all...
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?
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!!
View 3 Replies View RelatedI 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.
[Code]....
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.
View 3 Replies View RelatedWith ref. to MS IE, when I use window.open with the usual sizing and
'toolbar=yes', 'menubar=yes' the target URL opens in a new window -
but without an address bar.
'addressbar=yes' does not seem valid. Can someone please tell me how
to proceed?
When creating a new window and specifying ANY features (on or off) at all like such:
<A HREF="javascript:void(0)"
onclick="window.open('NONE.php','welcome','toolbar=1,location=1,directories=1,status=1,menubar=1,resizable=1, scollbars=1')">
Open a new window</A> the new window does not have scrollbars even though scrollbars are necessary for my document (vertically, at least).
This problem occurs in Firefox and Internet Explorer 6. The problem does NOT occur if there are no features are specified.
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....
I know I can get the window object by using
obj = window.open( .... );
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.
[Code]...
i want to change parent window while modal Window opening or opened
my php code is
Code:
<li>
<div class='newsPopUpModal'>
<a href='#'
[Code].....
I've seen sites that do this and was wondering if anybody could has the code to do it.
View 5 Replies View RelatedWhen I do the following line in Netscape, the popup loads as it should,
but the parent window usually, but not always, reloads as well.
<a href="#"
onClick="window.open('/cgi-bin/displayimage.cgi?/store/demo/image.jpg&YOUR+PRODUCT%27<b>S+NAME+GOES',
'fullimage', 'WIDTH=420,HEIGHT=405,status=0')">
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");
}
I am calling it by the following line:
<img src="art.gif" onclick="myOpen()">
I have a cross-browser on click pop-up window that i wont to have opened underneath the active window.
Here is my code:
Code:
Code:
What changes do i need to make to this code to achieve my goal.