|
|
|
|
![]() ![]() |
Jan 14 2008, 11:03 AM
Post
#1
|
|
|
Newbie [ Level 2 ] 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!! |
|
|
|
May 6 2008, 11:45 AM
Post
#2
|
|
|
Member [ Level 1 ] 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 |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 11th October 2008 - 06:41 AM |