First, i'm sorry to post this twice. i posted in flash forum, but is a js problem...
My swf (1.swf) stays inside an html page (1.htm). I need to get the focus on it just when i open the page. For this i use a js inside the 1.htm head page:
function fuoco(){
var IE = navigator.appName.indexOf("Microsoft"
!= -1;
var filmato = IE ? window.filmato : window.document.filmato;
filmato.focus();
}
//-->
</script>
This function gives the focus on the 1.swf. When i open from this swf a new window (a pop-up with inside 2.htm), i reset the focus on the last one, using this code in the 2.htm page:
<body onLoad="self.focus()">
Now, if I pass to the old page (1.htm) just clickking on the blu-IE-bar of 1.htm, the focus given by the function fuoco(){ is lost! I need to click on the swf file to get once again it!
How can i pass the focus between two or more pages with a js? Why my function fuoco() works just once?
My swf (1.swf) stays inside an html page (1.htm). I need to get the focus on it just when i open the page. For this i use a js inside the 1.htm head page:
function fuoco(){
var IE = navigator.appName.indexOf("Microsoft"
var filmato = IE ? window.filmato : window.document.filmato;
filmato.focus();
}
//-->
</script>
This function gives the focus on the 1.swf. When i open from this swf a new window (a pop-up with inside 2.htm), i reset the focus on the last one, using this code in the 2.htm page:
<body onLoad="self.focus()">
Now, if I pass to the old page (1.htm) just clickking on the blu-IE-bar of 1.htm, the focus given by the function fuoco(){ is lost! I need to click on the swf file to get once again it!
How can i pass the focus between two or more pages with a js? Why my function fuoco() works just once?