Avatar for Username

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

I need to reset Focus to Javascript after the embedded Flash file took focus. (need it for keyboard input) window.focus(); not working.

  • 1 απάντηση
  • 10 έχουν αυτό το πρόβλημα
  • 11 προβολές
  • Τελευταία απάντηση από cor-el

more options

I have a Flash application that use JavaScript for keyboard inputs. At some point the user have to click on a textfield inside the swf. Flash then takes focus away form the JavaScript. I solved this by calling the following Javascript function from Flash>

function setBrowserFocus() { window.focus(); }

This works perfect in IE but not in Firefox 3.6 I made sure that the "Raise or lower windows" is checked in Firefox options.

I have a Flash application that use JavaScript for keyboard inputs. At some point the user have to click on a textfield inside the swf. Flash then takes focus away form the JavaScript. I solved this by calling the following Javascript function from Flash> function setBrowserFocus() { window.focus(); } This works perfect in IE but not in Firefox 3.6 I made sure that the "Raise or lower windows" is checked in Firefox options.

Όλες οι απαντήσεις (1)

more options

A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.

The helpers at that forum are more knowledgeable about web development issues.

You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25