javascript IMG nameProp

namePropNN n/a IE 5(Win) DOM n/a  

Read-only  

Returns the filename (without the rest of the URL path) of the current image. Simplifies examination of current image content.

 
Example
 
if (document.images[3].nameProp == "menuOn.jpg") {
    document.image[3].src = "../images/menuOff.jpg";
}
 
Value

Case-sensitive string filename and extension.

 
Default

None.


992,Nickname,Homepage or email,Comments here,Add comment