Undefined Object method
<p>I have this code and as i use the <code>display</code> method it keeps giving me:</p>

<p><strong>url is undefined</strong></p>

<p><strong>name is undefined</strong></p>

<p><strong>description is undefined</strong></p>

<p>I don't know why i'm getting errors even though I am providing it will all the proprieties. Can somebody please identify the problem for me?</p>

<pre><code>function website(name,url,description)
{
    //Proparties
    this.name=name;
    this.url=url;
    this.description=description;

    // Methods
    this.getName=getName;
    this.getUrl=getUrl;
    this.getDescription=getDescription;
    this.display=display;

    // GetName Method
    function getName(name)
    {
        this.getName=name;
    }

    // GetUrl Method
    function getUrl(url){
        this.getUrl=url;
    }

    // getDescription
    function getDescription(description){
        this.getDescription=description;
    }

    function display(name,url,description){
        alert("URL is :" +url +" Name Is :"+name+" description is: "+description);
    }
}

// Set Object Proparites
web=new website("mywebsite","http://www.mywebsite.com","my nice website");

// Call Methods
var name = web.getName("mywebsite");
var url = web.getUrl("http://www.mywebsite.com");
var description = web.getDescription("my nice website");
web.display(name,url,description);
</code></pre>
