I have a bit of Jquery written to add an image with an on click event but I am struggling to get the on click to alert the function that I have created the ultimate aim here is to build a window.open event that uses the lookURL variable as its a address.
To save placing loads of code in the question i have created a JS Fiddle below.