I am looking for the correct syntax to add content to an element using innerHTML. Here is an example that isn't working as expected:
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>";
}