I am working with the Trivia Quiz in the Beginners JavaScript book. The following is an example of the setup for asking a question in the test:
// define question 3
questions[2] = new Array();
questions[2][0] = "Electrical resistance is measured in?";
questions[2][1] = "Amps";
questions[2][2] = "Ohms";
questions[2][3] = "Volts<a href=../q3_ap1.htm target=_blank><img src=reference_button.gif border=0></a>";
questions[2][4] = "Watts";
// assign answers for question 3
answers[2] = "B";
What I am using to open the new windows (in red) works to open a separate window but does not give me the option to set the height, width, top, etc. I have tried different code to open a new window but all that I have tried use the (")quote mark somewhere within them and this gives me a
js error and keeps the whole thing from working. Any suggestions would be appreciated!
Thanks