hopefully someone can help me. i want to get a thumbnail id value when an onclick event happens, but no luck, any ideas? thanks
<a href="test.ca/images/image-1.jpg?id=1"; onclick="swap(this); getVa(); return false;">this is a small thumbnail image</a>
Here is the js for swapping the thumbnail:
function swap(image) {
document.getElementById("main").src = image.href;
}
now i want to access the id at the end of the thunbnail url. note this url is not a location url. thanks