JavaScript image naturalWidth![]() <img src=../images/top2.jpg align='right' id=my_image >Let us start with reading the naturalWidth of the image
Here i1 is the image object.
naturalWidth of an image object returns the actual width of the image irrespective of its change by any style property. By using width we will get value after any style or DHTML is applied. Here is the code.
Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
![]() |
More on JavaScript Image Object![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |