window.open

Pass array to Window

can we pass an array to window.openDialog or window.open in javascript? I know that we can pass parameters, but can this be an array? ...

IE7 - visited links revert to unvisted after page refresh

Hello, A number of our users have just upgraded from IE6 to IE7. the upgreaded users are reporting an issue with visited links reverting to their unvisited color after a page refresh. This only happens to links that are using javascript instead of a hard coded URL: <script lang="JavaScript"> <!-- function LoadGoogle() { var LoadGo...

Href link with OnClick event

Hi, i am having a link like below where on click of that twitter , i need to open the twitter page with the message given in $markme_ddesc but instead when i click on the link , it simply moves to twitter.com without opening in a new window and with the message.. <a style="text-decoration:none;" href="http://www.twitter.co...

Javascript window.open firefox/chrome issue

Hi, I've application to open popup window to print page. function printHTML(urlPath) { var printPopUp = window.open(urlPath,null,"height=600,width=777,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes"); printPopUp.print(); } This script is working fine in IE, but in firefox/chrome. print() function is overlapping window.o...

new window from a window.showModalDialogue() opens another modal window

I have this button which opens up a window.showModalDialogue window. This works smooth n all browsers. The problem is if i have a window.open() inside the page showModalDialogue as a Modal window instead of a independednt window. /*===========================================*/ /*open window using ShowModalDialogue in page*/ /*==========...

IE won't load PDF in a window created with window.open

Here's the problem, which only occurs in Internet Explorer (IE). I have a page that has links to several different types of files. Links from these files execute a Javascript function that opens a new window and loads the specific file. This works great, unless the file I need to open in the new window is a PDF in which case the windo...

JavaScript Trigger window.open When a User Clicks Anywhere on Page

I have a problem that I have been trying to figure out and haven't been able to get past it because Chrome/FireFox/IE do not publicly publish their "rules" for pop up blocking when it comes to JavaScript, Flash, etc. I am trying to trigger a window.open() when a user clicks anywhere on page. I've tried this: document.onclick = window.op...

Opening a window in javascript (window.open) on rollover without getting blocked by popup blockers

I like to open a new window (not in the same window) in JavaScript with window.open on rollover (without click event) and it gets blocked by popup blocker in IE and Firefox. Is there a workaround for this? ...

Open a popup window on top of a popup window in ASP.NET

I have a scenario where I have a popup window open and that will have links to open up another window that's going to pop open on top of the already open popup window. I've tried all sort of tricks (javascript window.open, target="_blank" etc.) but nothing seem to work. It always was opening the page on the already opened popup window. ...

Getting the size of an opening window in WebKit

Hi, I'm implementing a "WebKit Browser In An Application" which basically embeds WebViews in Qt widgets (we're using the WebKit browser instead of Qt's since it's stabler and more up-to-date). So far everything's great, until someone clicks on a link which invokes a Javascript "Window.open" function with a custom width and height for ...

Firefox: window.open prevents img.src from loading

Hi. I've heard some rumors I can't seem te replicate. And now I'm curious if any of you have experiences with this issue. Our analytics system uses JavaScript to generate an image of 1x1 pixels. This 'image' is registering all of our visitors behaviour. Now consider the following (simplified) JavaScript code: function visitLink (url)...

Iframe/Popup redirecting opener window

Hello all, I have a page located at x.com. On this page is a button that, when clicked, will launch a new window (using javascript's window.open() method) to a page that is located at z.com. The popup does a few things, then redirects the original window (the opener, x.com) to a different page based on some parameters defined in the p...

Login time out when calling opening a new window from modal popup (ASP.NET)

I have a weird problem. I have a window, on a button click I open a modal popup (using ModelPopupExtender), that let's you select a few criteria and then click a submit button. On click of submit button, I open a new window (using window.open()) that shows the status of what happened to your submitted request. However, every time this st...

window.open in javascript?

<head> <script language="javascript" type="text/javascript"> function openMe() { var win = window.open("about:blank"); var str=""; for(var a in win){ str+=a+"<br/>"; } document.getElementById("data").innerHTML = str; win.document.write("Karandeep Singh"); } </script> </head> <body> <div> <inp...

Javscript to open URL within a new Tab (instead of a window)

Hey guys. There are a few entries here requiring solutions to do the opposite of this, and others vaguely related. In one of them, the poster asked how to do this on Mozilla Firefox. Actually though, firefox will always open the URL in a new tab when window.open() is called, unless you set the window's size within its parameters. So Moz...

window.open and .Net WebServices

I don't know exactly the cause of this symptom but here goes. In our web app, we call window.open to open a new window/tab (internally everyone's is set to open in a new tab). After opening this new tab, IE8 immediately switches the focus to it. We then integrated a web service, so we call this web service which in turn invokes a callb...

Printer Friendly page not working with IE8

Hello Everyone, i m trying to pickup contents of a div and open it in new window using window.open so user can print this printer friendly page. i have got the code somewhere on the net and made some modifications. below is the code snippet function printpage() { var disp_setting="toolbar=yes,location=no,directories=yes,menubar=y...

window.open height isn't the same in Google Chrome as other browsers

I am using javascript's window.open to open a browser window on a user click at a specified width and height (760x581), and this works correctly on Internet Explorer, Safari, and Firefox, but Google Chrome is giving me issues. In the other browsers, the height is correctly used as the height of the content, but in Google Chrome it is ma...

Javascript: Window.Open with a # sign in URL?

I have a local web app that lets users attach and view files. Viewing files is simply window.open(fileName), however whenever the filename has a # sign in it the file will fail to open with a dns error. I've tried escaping the # symbol with %23, and \# but it still fails to open... is there something special I need to do to escape the # ...

Preview button action captured by popup blocker

I want one of the page adding editors on site to have a preview buttons associated with it. When user clicks preview the content gets saved and if the save is successful a page preview window is launched. The problem here is that the preview windows is blocked by browser's pop-up blocker. What can I make to "fool" the browser ? I was t...