Jump to content

Archived

This topic is now archived and is closed to further replies.

slipperyfish

Retrieving the filename?

Recommended Posts

Is it possibile to get the src of say an image, then find the filename of that source?

For example:

<img src="blah.jpg" id="anImage" />

[code]

var imageSrc = anImage.src;

[return base filename of the variable]

document.write([filename]);

[/code]

or is this just a ridiculous question?

Share this post


Link to post
Share on other sites
Hi there,,

cool,.... & it was,... ? :)

It would be pretty nice to show us the solution,... ;)

l8tr,,

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.