Hi,

On my HTML I have:
PHP Code:
<a href="#" name="upload/1.png" onclick="aImg(this.name)" id="bigger">Hi</a
On my Js I have:
PHP Code:
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!