Although there are some examples on internet with Server object i.e
but i m seeing the error "Server is undefined". If i put this code on a web page (e.g aspx - asp.net 2.0 ) then it will work fine. But my requirement is to Execute this code from JS
file is called by an HTML page via a Script tag.