I am going to redirect my page by clicking a button. But I am totally messed up by the quotes.
Here is the code:
child.innerHTML += "<a class='sliding-element' href='javascript:sendSurvey(" + (m + 1) + ")'>Survey " + surveyList[m].Name + "</a>" + "<input type='button' onClick='parent.location='QuestionPage.aspx''/>";
It can’t redirect me to the QuestionPage.aspx. It simply does nothing.
I don’t know what your function does, but you could try escaping the double quotes: