I’m getting a
Breaking on JScript runtime error - Unknown runtime error
on this line:
c.innerHTML= '<a name="a1" class="b" href="' + d[2].value + '">' +
d[1].value + '</a>';
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I noticed that
cis an anchor element and you are trying to set itsinnerHTMLto create a child anchor element, which is not valid HTML, though most browsers can tolerate invalid HTML. Something that would make things clearer and help you identify the problem would be to write your code as follows:This will likely still have the same error as before, but it should be easier to figure out on which line the error is occurring. For example, the problem could be that either
d[1]ord[2]isnull.