[Laszlo-user] setFocus() in swf
Dave Miller
dwmiller at umich.edu
Wed Apr 30 16:00:42 PDT 2008
On Apr 30, 2008, at 12:45 PM, Jesse Norell wrote:
> Could that be worked around in the
> html that embeds the swf application (ie. via javascript that sets
> focus)?
Here's my standard HTML. Note the "onLoad()" in the body tag and the
'id' param of the swfEmbed().
Not sure if this works in all browsers.
Dave
<html>
<head>
<title>My App</title>
<script src="embed-compressed.js" type="text/javascript"></script>
</head>
<body style="margin: 0;" onLoad="window.document.lzapp.focus();">
<script type="text/javascript">
Lz.swfEmbed({url: 'main.lzx.lzr=swf8.swf?&lzproxied=false',
bgcolor: '#ffffff', width: '100%', height: '100%', id: 'lzapp',
accessible: 'false'});
</script>
<noscript>
Please enable JavaScript in order to use this application.
</noscript>
</body>
</html>
More information about the Laszlo-user
mailing list