[thelist] Window targeting problem
Aylard James J
jaylard at equilon.com
Mon, 17 Jan 2000 18:50:46 -0600
Jeff,
Thanks for the refresh.
> personally i would avoid using a language defined method of preventing
> errors. if you call a function that's defined in a js1.1
> <script> block, a
> pre-js1.1 browser will throw an error because the function
> isn't visible to
> it. it's far better to check for method or object support and act
> accordingly.
Okay, another sign of sloppiness on my part, since I didn't really
say what I meant. In the case of enclosing it in a js1.1 script block, I
wouldn't put it inside of a function; I'd do it like this, instead:
<script language="javascript 1.1" type="text/javascript">
<!--
self.focus() ;
// -->
</script>
I agree that it's generally wise to check for method or object
support when in doubt, although I think either approach will suffice in this
case. But if I'm missing something, please let me know. Thanks.
James Aylard
Equilon Enterprises LLC
jaylard@equilon.com