-
Focus in JavaScipt
Hi I've managed to set focus for my movie which is launched as a popup window using the following
in flash:
getURL("javascript:focusMovie()", "_self");
on html page:
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function focusMovie(){
window.document.mpassword.focus();
window.moveTo(0,0);
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 ) {
window.resizeTo( screen.availWidth,screen.availHeight);
}else{
window.resizeTo( screen.availWidth-20,screen.availHeight-30);
}
}
but it is not working on the mac with ie 5.2 or NetScape
basically window.document.mpassword.focus(); is not working
(my movie has the ID mpassword)
How do you do it for a mac?
[Edited by ceeacs on 08-19-2002 at 11:52 AM]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|