Focus A Window(not A Webpage)

Nov 23, 2009

what do i need to get something like this going: When a user clicks on a button to focus a windows program thats already running

View 1 Replies


ADVERTISEMENT

Window.location.href ... Flush - Webpage To Launch Setup.exe Then Go To Another Webpage On CD

Aug 10, 2010

It launches in IE and give the user instructions, then at the click of a button, launches my setup.exe. I want my webpage to launch setup.exe then go to another webpage on my CD, congratulations.html, which says "installation is complete etc". Here's what I am trying to do through JAvascript. It doesn't work. Should the first instruction be flushed in order for the 2nd one to work?

[Code]...

View 7 Replies View Related

JQuery :: Event Thrown When The Webpage Loses Focus?

May 15, 2009

I want to stop the flowplayer video player when the page loses focus. Either another tab is being viewed or another app is in focus...

I tried (document).blur, ("#pagewrapper").blur, ("#pagewrapper").mouseout...

I have everything working except the page.blur... I can't seem to find an event that will work for this.

View 2 Replies View Related

Focus On Parent Window After Closing Child Window?

Sep 24, 2009

I'm having trouble with Safari. After i close a popup it does not focus on the parent window. I have been looking around and i think its this sort of thing i need 'javascript:window.opener.focus()" target="_self"' but tbh i'm not in anyway a javascript whizz, so im a little confused.

Here is my current code to close the child window

document.write("<input name='close' class='button popup' type='button' value='Close Window' onclick='window.close()' id='close'>"

So i need to somehow, add in the .opener thing to that.

View 2 Replies View Related

Opening A New Webpage In The Same Window

Feb 14, 2011

I am trying to write a javascript to open multiple websites in the same window for Internet Explorer. However I keep getting the website opening in a new window. Here is my code.

[Code]...

So currently, this code behaves like this. Every 3 seconds, it opens up a new website. However this code I wrote opens [URL] in a new window, then [URL] in a new window and so on. I want it to open all the websites in the same window. How do I achieve this?

View 2 Replies View Related

Reloading A New Webpage In The Same Window

Feb 13, 2011

I'm trying to write a javascript to open up multiple websites one at a time in the same window in Internet Explorer 8, but my code keeps opening the sites in a new window. I want it in the same window. I can't seem to achieve this.

[Code]....

So, currently this code opens up [URL] in a new window, then it opens [URL] in a new window and then [URL] in a new window. I do not want it to behave like this. I want all the websites to be open in the same window one after the other.

View 1 Replies View Related

Focus On Second Window

Jul 23, 2005

If I use the following construct in the frame "main" for a link to an
extern site:

<A HREF="http://www.any.xy" TARGET="extern">

the Browser is creating the window "extern", loading the page
www.any.xy an setting the focus to "extern". But when I go return to
"main" without closing "extern", a click to an other link (e.g.
www.2nd_any.xy) on "main" does not setting the focus to "extern".

For setting the focus to "extern" in the second case, I have used the
following construct:

<A HREF="http://www.any.xy" TARGET="extern"
onClick="setTimeout('extern=window.open('','extern');fr emd.focus();',500);">
an example</A>

This construct has worked very well for a few years, but since about
one year, the sesult was the same as using
<A HREF="http://www.any.xy" TARGET="extern">

In this year, I have changed:
win 95 --> win 2000
modem 56k --> DSL
Netscape 4.5 --> Netscape 7.1

Can anybody tell me a possibility setting the focus to "extern" in the
second case? Is the changing of my configuration the reason, that the
construct has failed?

View 31 Replies View Related

Window.focus()

Apr 19, 2006

this is for a browser window that contains a chat app that is an applet... when browser window is not in focus I would like users to somehow get notified when a message arrives, more or less like regular IM apps do.. I did with window.focus(), but I don't really want window to come into focus, I just want it to 'blink' and then stay highlighted.. I tried window.setActive() method (not sure what that method does but wanted to try it) but I get obj-non-supported error in
IE6 with that method ..

View 3 Replies View Related

New Window Focus

Oct 1, 2007

does some one know whay this code doesn't works with mozilla:

<body onload="window.focus();">

how can i focus this window in both explorer and mozilla browsers?

View 3 Replies View Related

Window.open And Focus

Mar 10, 2006

if anyone is still curious about this recently posted issue creating error 'member not found'

function imageWindow(whichImage)
{
imageWindow = window.open(whichImage,
'myWindow','width=450,height=200')
imageWindow.focus()
}

I was experiencing the same problem and determined that the error was experienced when loading a pdf file. in the above case the user appears to be loading an image. The problem does not occur when simply loading html files.

View 4 Replies View Related

Window.focus() Problem

Jul 20, 2005

I'm trying to test if a browser is configured so that I can use popup
windows or if it has a popup blocker installed... the only solution I was
able to think of, was one that would pop up a window and then write a value
of popup=true into a form box (or cookie) and then submits the page.

The code below executes up to the point where the window regains focus
window.focus() but fails to execute any code after that point, specifically
executing the submit form.

popWin = window.open('popupTest.htm','','width=10,height=10 ');
popWin.blur();
window.focus();
document.form.submit();

Could someone please help me with how I would execute the submit line after
the window regains focus.

View 1 Replies View Related

Window.Focus() Popup...

Oct 14, 2002

I have a page where it accesses the same popup a couple times. When I click 'Help' it opens the popup then goes to the section. But, if i go back to the other page, and click another link to the popup which goes to another section, it doesn't re-focus on the popup window.

The sections are accessed by the '#SECTION' link...

Code:

<a href="javascript:helppage('help.htm#Section','title');">Help</a>
How can I focus on it when it goes to a new section when the popup is already open?

View 1 Replies View Related

Focus On Last Window After Popup?

Aug 2, 2010

I have this ads on my webpage that popup whenever you go somewhere (obviously prett annoying ). So my question is: how can I make so the previous window I was at gets focus and the popup doesnt. My thoughts was on making it with the onLoad function after you popup the popup but its stops there.

View 3 Replies View Related

How To Launch A Window's Application From Webpage Using Java?

Jul 20, 2005

I want to use some javascript to launch a windows application (this used on
intranet) but don't know how. It'd be neat if I could not only launch the application but minimize the webpage's browser at the same time, but this is just icing on the cake.

View 7 Replies View Related

HTML Window Focus Alert

Jul 23, 2005

I have a web site where multiple html pages are opened at a time & messages are received or those pages are refreshed automatically using meta-tag.

what I want is whenever that page is refreshed, the particular html window should notify user (as user may have opened other html window), now notification could be by setting focus to that html window which is refreshed, but then this will distract & frustate the user as he was referring other html window. What I would like to do is make that window blink or some notification like yahoo or msn mail received. But I want this kind of feature in HTML/Javascript.

View 3 Replies View Related

Can I Focus A Popup Window Without Refreshing It?

Jul 20, 2005

The crux of the problem is I only know if the popup *has been* opened,
but not if it *is* open. Therefore, the script doesn't know whether to
simply refocus, or whether to popup a fresh window.

Are these the only solutions?
* handle onerror in some creative way
* hidden frames

BTW, I do have the luxury of ignoring non IE 5.5+ browsers on this
project..

View 4 Replies View Related

Focus On A Child Window In Opera?

Mar 17, 2010

I have a web page which lists and displays all the characters for which a Named Entity code exists, with coding details etc..Some of these characters are quite obscure and the reader will only be able to see them if they have a suitable Unicode font on their own PC/browser. If not, they will just see placeholder squares.

For these obscure characters, I've set up a popup window. Click on a placeholder square and a small window appears which shows a .gif of what the character should look like, and a label saying what it's called.If the user closes the window after viewing, there's no problem. The difficulty comes in if somebody wants to click on a succession of placeholders and view a succession of character .gifs, and meanwhile the initial child window has slipped to the back of the stack and is behind the webpage instead of in front.

In IE, Netscape and Safari, it's easy - I just use .focus to bring the child window to the fore. In Chrome, which doesn't recognise the .focus command, I close the child window and re-open it. [There's code further up the document which identifies the browser.]However, neither .focus nor closing and re-opening the window works with Opera, which turns the child window into a tab rather than a separate window, and then shoves that tab to the back.how I can get Opera to either move the focus to the child-tab on command, or close it on command so it can be re-opened?This is the code that generates the child window:

function charDisplayer()
{
if (isIEorInnerGroup == "Yes") {codeWidth = windowWidth*.171, codeHeight = windowWidth*.239, codeInset = windowWidth*.041} else[code]....

Ignore the line which begins if (isIEorInnerGroup == "Yes") - this is part of a setup which resizes all art, tables etc to maintain a constant size across all browsers and screen resolutions."stylesheet" is passed as a variable because I have two different stylesheets on the go, to accommodate the fact that Netscape handle text-size differently from the other browsers. There's a function elsewhere which sets the value of stylesheet according to whether the browser is Netscape or not, and whether the platform is a Mac or not."charID" is a variable which identifies the code name of the character (taken from the Named Entity code) and looks it up under that name in a list of .gifs. "charName" is a variable which passes a text-string saying what the character is called, e.g. "Not a subset of".There is an "isOpera" variable which can be used to start a specific action if the browser is Opera.

View 1 Replies View Related

Disabled Window Focus When Div Tag Is Shown

May 11, 2009

When javascript alert is popped up, it doesnot allow us to focus on the window till we click on the alert ok button. Can we do the same when I popup div alert. I have put in the code in a function to call when div is loaded. But its not working

The code I am using is:

But it seems like its not working, Even the alert is also not popping up.

View 5 Replies View Related

Window.open Changes Focus In Safari?

Mar 24, 2011

I use a cookie to keep track of a particular window (using window.name), lets call this the main window. I use the window to distribute data returned from the server.

I use window.open("",mainWindowName) to get the reference to the main window object.

The problem is in nearly all browsers this works fine (focus stays on the current window), however in Safari, window.open also sets focus to that window (mainWindowName).

Of course I can reset focus back to the current window in Safari, but there is a quick flash of windows focus changing and it doesn't look good.

View 2 Replies View Related

Popup Entry Window Focus

Jun 28, 2005

I am working on a ASP.NET application and have some forms that require to be popped up and let the user edit information on them. These windows must stay in focus until closed, but I have having some issues implementing this.

We are targeting IE explorers and have tried the showModal() which is exactly what we require (as it forces the user to the window till complete) but the page cannot refresh/postback which is what we need.

I also tried the on blur = self.focus() but that doesnt work either as when I user clicks the textbox on that popup to update a datagrid the focus is taken off the textbox and to the window again.

What I'm trying to achieve it a popup window that has focus until complete and allows the window to refresh as it requires use to update & delete a datagrid. Any ideas?

View 1 Replies View Related

Mouse Cursor Not Change, Until I Focus To Different Window

Jul 23, 2005

Below is example js:

function SomeLongProcess()
{
for(var i=0;i<document.all.length;i++)
document.all(i).style.cursor="wait";

// some long process here !!

for(var i=0;i<document.all.length;i++)
document.all(i).style.cursor="default";
}

so, the problem is, that the mouse cursor not change, until i focus to
different window, and return to this window.

View 1 Replies View Related

JS Alert Causing Loss Of Window Focus???

Jul 23, 2005

I've got a strange problem in IE that I wonder if anyone has seen
before. Basically, I've got a two window scenario. The parent window
opens the child via window.open(). The child contains a form and
submissions are processed in the child window. When the child window
form is submitted and the results are returned, an alert box is thrown
up via setTimeout("alert(....)", 2000). For some odd reason, when
this alert is displayed, focus is transferred back to the parent
window with the alert box on top. When you press the OK button on the
alert, focus is transferred back to where it should be; on the child
window. This doesn't happen all the time. But it happens. Is there
something I can do to solve this mystery?

View 2 Replies View Related

How Make So Child Window Always Has Focus Unless Clossed?

Sep 9, 2005

I have a page that opens a child window using window.open(...). How do I make so that when that child window opens you cannot get the focus back on the parent window unless you close the child window?

Is it even possible?

View 10 Replies View Related

Practical Use Of Window Focus And Blur Event?

Aug 15, 2011

What is the practical use window.focus() and window.blur()?

View 2 Replies View Related

Detecting When A Browser Window Receives Focus

Dec 15, 2006

I would like to set up a listener, I think, that will exectuve a bit of code when my primary browser window receives focus.

For example, I will open a new _blank window, but when that window is closed, I would like some code to exectuve. What is the proceedure to do this?

View 1 Replies View Related

<form> Action Should Popup In Same Window And Focus()

Feb 17, 2006

I am using a standard html <form> to send data to a pop up calculating somthing.
I want all coming requests to go to the same window.

Quite easy with forms since we have the target attribute, thus target="calculating_window".

However future <form> submitted entries will appear in the "calculating_window" window, but keep behind the current active window (with the <form> formular). The user therefore cannot see new entries beeing calculated.

I tried working with a OnClick thing with the submit button and javascript focus(), but i just can't get i to work. Any suggestions?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved