Richard Lynch wrote:
On Tue, April 26, 2005 7:51 pm, Eli said:
I know this is not the forum, but I googled and couldn't find it, so
please try to help me with this.
/*/
function MyCls(name)
{
this.name=name;
}
function SayHi()
{
alert('Hi, '+this.name+'!');
}
var obj=new MyCls('PHP');
Eli wrote:
Hi,
I know this is not the forum, but I googled and couldn't find it, so
please try to help me with this.
/*/
function MyCls(name)
{
this.name=name;
}
function SayHi()
{
alert('Hi, '+this.name+'!');
}
var obj=new MyCls('PHP');
obj.name='JavaScript'; //this will call SayH
On Tue, April 26, 2005 7:51 pm, Eli said:
> I know this is not the forum, but I googled and couldn't find it, so
> please try to help me with this.
>
> /*/
> function MyCls(name)
> {
> this.name=name;
> }
> function SayHi()
> {
> alert('Hi, '+this.name+'!');
> }
> var obj=new MyCls(
3 matches
Mail list logo