vdesignlabs
Jan 14 2008, 11:03 AM
| | 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!! |
Comment/Reply (w/o sign-up)
Jared
May 6 2008, 11:45 AM
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
Comment/Reply (w/o sign-up)
Similar Topics
Keywords :
settimeout, and, focus, working, firefox
- Javascript Changes Aren't Working.
(6)
Focus() And Select() Problems With Firefox
(2)
Hi guys, I am new to javascript and am currently learning it with the book Wrox Beginning
Javascript 3rd ed. I have just encountered a problem that I am not able to figure out. Could you
please help me out..... The problem is that select() and focus() are not working in FF2.0 but works
in IE7. This is what the code is supposed to do: 1. I enter a age 2. If I enter non numerical data
and then I tab out of the text area 3. An alert box pops up and tells me to correct the age. 4. On
hitting ok it goes back to the age field. But in FF its going to the next tag(the submi....
Formatting Alerts/confirm In Firefox 1.5.0.1
(3)
I was trying to use the \t to tab in Firefox 1.5.0.1. It works in IE 6. I haven't tried it in
other other browser, but I was wondering if there's something I'm doing wrong. I tried a
simple test page to see if it was my script, and the test page gave me the same results. It worked
in IE6 but not Firefox. I also tried putting in " " for tabs instead of using the \t escape.
Firefox just ignores the white space I guess. Any ideas on formatting it? I'll post the test I
did: CODE function test(){ alert("\t\tCENTER!\t\t"); } --> ....
Alpha Release Astahost Credits Reporting Extension
for Firefox, of course (9)
Hi guys, I'm almost finished with coding an extension for Firefox that'll enable Astahost
Hosted Members (and later on Trap17 too) to view their current hosting credits count right off the
status bar of their favourite browser - even if you're NOT visiting astahost. This will
always keep you upto date with your credits count - and alert you whenever your credits count dips
below the safe zone. The extension comes with 4 different coloured icons - BLUE, GREEN, AMBER and
RED - which gets displayed along with your credits. It is meant to provide a visual in....
Need Drop Down Menu Script
Current not working in firefox (1)
I'm in need of a drop down menu script. The one I am currently using was written to work in
both ie and netscape, but does not work in firefox. /sad.gif" style="vertical-align:middle"
emoid=":(" border="0" alt="sad.gif" /> I new at installation that the author had stretched the
rules abit to make it work, but didn't expect firefox to come out. I don't care what
language it is written in as long it works If you have ie you can see an example at:
http://66.78.26.33/~ruidoso/ I would appreciate any help you can recommend pete....
Looking for settimeout, and, focus, working, firefox