Normally we can use var a = "<a href='index.php'>index</a>"; but I need to have more then 2 ' in the same line of code as it follows:
var status = "<a href='javascript:window.open('atendimento.php','hhchat','top=70,left=70,width=480,height=450,status=no,location=no,statusbar=no');void(0);'><img src='img/atendimento.png' width='160' border='0' /></a>";
So the problem is that it starts and finishes the line code here: 'javascript:window.open('
And I need it to continue till the end of the line .. How can it be done?
var a = document.createElement('a'); a.href="javascript:...";). On the server side, use a template system that handles the quoting for you.