I am trying to open a larger picture of the original picture that is in the html document. in the html its called "bild.png" and I want to open a larger one called "big_bild.png" in a new window.
I have fetced all the images and sorted out the one I want in another function. the function I cant get to work looks like this:
function visa(){
var pic = this.src; //the original picture called from the other function
var pic1="big_"; //this is what I want to add to the original filename.
var pic2=pic1+pic;
open(pic2); }
when this runs it tries to open to files instead of adding the text "big_" to the orignal file.
I know this is really easy for those who know but I am veery new to javascript and strugeling to understand how to put it all together.
I would be very happy if someone could help me understand what I doing wrong.:?: