Javascript array value as HTML src value : I'm a complete beginner to HTML and Javascript and I've encountered this problem. I have a button and under `onclick`, I have :

    onclick="document.getElementById('slideCurrent').src=images[1]"

and in the Javascript portion, I have :

    var images = [
        "PATH BLABLABLA_1",
    	"PATH BLABLABLA_2",
    	"PATH BLABLABLA_3"
    ];

and for some reason, it won't display the image. However, if I put the path directly there, it will work normally.

What can I do to fix this?

Thanks.