I have an input text field where the user provides the source url of the image ,
for example http://mysite/images/STARTPAGE_LOGO.gif is a valid value.
I dont have any img tag or something else in my html document. How can i determine the dimensions of the image which is present at the URL the user has entered .
There is no method to find out the width and height of the image without loading it so you will have to dynamically load it , and to do so you can use
After declaring the above function in pure javascript spirit you can do something like