Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Settimeout() & Focus() Not Working With Firefox
vdesignlabs
post Jan 14 2008, 11:03 AM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 20
Joined: 29-December 07
Member No.: 27,209



Hi Friends,

I am new to javascript.
Just a few days back I had encountered a problem where focus() doesn't work well with FF, and Kravvitz showed me a workaround by using setTimeout();

Now I have a similar problem:
1. I open a new blank window using 'window.open()'
2. I alert the user that I am going to add some HTML to it.
3. I add the HTML to that new window, and
4. I bring focus to that new window.

It works beautifully in IE7 but not in FF.
CODE
var newWindow = window.open("", "myWindow", "width=300, height=300");
alert("Going to add html");
newWindow.document.write("Hi");
setTimeout("newWindow.focus()", 10); //newWindow.focus(); also doesn't work!

Thank You for your time
Cheers!!
Go to the top of the page
 
+Quote Post
Jared
post May 6 2008, 11:45 AM
Post #2


Member [ Level 1 ]
Group Icon

Group: [HOSTED]
Posts: 40
Joined: 17-April 08
Member No.: 29,853



Just did a Google search and came up with this. Near they end they seem to figure something out, but not sure if it's what you're looking for!

http://www.webdeveloper.com/forum/archive/...hp/t-80404.html

- Jared
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Formatting Alerts/confirm In Firefox 1.5.0.1(3)
  2. Focus() And Select() Problems With Firefox(2)
  3. Javascript Changes Aren't Working.(6)


 



- Lo-Fi Version Time is now: 11th October 2008 - 06:41 AM