PDA

View Full Version : links



lord22
11-16-2009, 11:39 PM
Hi,

On my HTML I have:


<a href="#" name="upload/1.png" onclick="aImg(this.name)" id="bigger">Hi</a>


On my Js I have:


aImg(file){
alert(file);
}


For some reason it doesn't alert me the name of the file which is in the a tag, when I click on the link.


Thanks in advanced!