Javascript Syntax Error -


hiere is my code, I want to solve my closing problem within a loop but on the click I receive an error message "Syntax Error "receive any help thank you in advanced.

  var html = '& lt; Div style = "margin-top: 10px" & gt; '; Html + = '& lt; Div square = "weter" & gt; Kartarsahal Mara Mar Reshark and Yum; Bernheim & Lieutenant / Equity & gt; '; Html = = '& lt; Div class = "weiter" style = "display: block; clear: left; margin head: 7px" onclick = "function (obje) {return getchildObject (obj)} (obj)" & gt; Witter and lieutenant; / Div & gt; '; Html + = '& lt; / Div & gt; ';    

This code is not valid for your onclick attribute: in parentheses Keep the expression of the function and try it instead:

  function (obz) {return getgreen (obj)} (obj)  

  (Function (obj) {return getchildObject (obj);}) (obz)  

Comments