I want to open images in new window but i cant figure out the JavaScript code!
HTML:
<img class="picture" onclick="expand()" src="bild1.jpg">
Javascript:
function expand()
{
var bigImage = document.getElementByClassName('picture');
var source=bigImage.getAttribute('src');
window.open(source)
}