<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> ObjectAttribute.html </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head>
<body>
<script type="text/javascript">
var lennon={name:"John",year:1940,living:false};
var beatles=Array();
beatles['vocalist']=lennon;
alert(beatles.vocalist.name);alert(beatles.vocalist.year);alert(beatles.vocalist.living);
var beatles2={};
beatles2.vocalist=lennon;
alert(beatles2.vocalist.name);alert(beatles2.vocalist.year);alert(beatles2.vocalist.living);
</script>
</body>
</html>