I want to have the flash document have focus when the page initially loads...so the user can use the mouse scroll wheel to zoom in and out on the map that is on stage...(withou t having to click inside the browser window first)...
Now, I have already gotten this to work with IE by using the following code...
[HTML]<body onLoad="window. document.eXfX.f ocus();">[/HTML]
But like I said, this only works in IE, and I cannot find any information on forcing focus in other browsers...and I do not know how I would decide which browser is being used...I'm fairly new to JS so bare with me...
Now, I have already gotten this to work with IE by using the following code...
[HTML]<body onLoad="window. document.eXfX.f ocus();">[/HTML]
But like I said, this only works in IE, and I cannot find any information on forcing focus in other browsers...and I do not know how I would decide which browser is being used...I'm fairly new to JS so bare with me...
Comment