Hi, having some problems with using object literals when creating properties of a prototype object- no idea why this isn't working s expected - i'm sure i'm just missing something really simple.
Any help greatly appreciated!!
Code:
<script language=javascript>
function my_object(name)
{
this.name=name
}
my_object.prototype.dimensions= {w:100,h:100}