The situation now is that I have a set of assesment quiz questions for my users and once they click ‘submit’, there will be a message box showing the results. Among wrong answers, I will want to include a link back to the relevant sections so they can just click to load a new window showing the relevant section.
However, the <a herf=…>See the reference</a> tags also show up in the message box…Is there a way to code a link in a message box?
Any help / comment will be appreciated.
Thank you.
make your own “laert box” with a div or a span you will toggle from display none to diplay block …
You will then be able to put what ever you want in your alert box
Seems like I can’t do it with the alert(). I am thinking to open a new window like some of you have mentioned above to display the links and answers.
I have all the text stored in the variable, answerText.
May I know how to pass this variable to a new window for display?
Assuming I have the following submit button and Score() is the function that process the answers:
Thanks for your codes, SpaceFrog.
However, I think i would like to open a new window for this task. I would really appreciate if you can go to the following thread and give me some advise: