vdesignlabs 0 Report post Posted January 14, 2008 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, and4. I bring focus to that new window.It works beautifully in IE7 but not in FF. 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 timeCheers!! Share this post Link to post Share on other sites
Jared 0 Report post Posted May 6, 2008 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://forums.xisto.com/no_longer_exists/- Jared Share this post Link to post Share on other sites