What is the correct syntax if I want to add content to an element using innerHTML. Below is my non working example:
openNewWindow: function(content) {
popupWin = window.open(content,
'open_window',
'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, width=640, height=480, left=0, top=0')
},
for (var index in mv.exifImages) {
ele.innerHTML += "<p onclick = openNewWindow(mv.exifImages[index]> image" + index + "</p>";
}
ele.innerHTML += "<p onclick ='openNewWindow(mv.exifImages[index])'> image" + index + "</p>";