<html>
<head>
<script>
var s=String( 'foo' );
alert( s );
s.bar='bar';
alert( s.bar );
</script></head></html>
Why does the second alert produce 'undefined'? Are string objects
somehow special?
--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cybers pace.org | don't, I need to know. Flames welcome.
Comment