Possible Duplicate:
Deleting Objects in JavaScript
I have came to the use of delete property. It isn't working. I don't know whether it is a browser compatibilty issue or not? is it a reference being not deleted?
My concepts about pointer is not that clear. Please let us know whats going wrong?
Code:
    <html>
        <script language="JavaScript">
        MyDate = new Date();
        document.write("MyDate=",MyDate,"<br>");
        delete MyDate;
        document.write("MyDate=",MyDate);   //MyDate=undefined should be output
        </script>
    </html>
But the output is only first document.write:
MyDate=Mon Oct 01 2012 15:27:56 GMT+0530 (India Standard Time)
 
     
     
     
    