PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

How should he rewrite this line of code to ensure that this JavaScript command executes properly?

Nadir wants to be able to send the user to a previous page in the history list. Nadir’s site includes
two information pages before the entrance to the site. Therefore, users who do not want to enter
his Web site should go back at least three previous pages. Nadir uses the following command:
history.back(3);. This command does not execute properly when Nadir tests it. How should he
rewrite this line of code to ensure that this JavaScript command executes properly?

Which one of the following choices shows how Chiyo should rewrite this line of code so that no errors result w

Chiyo wants to open a new window with JavaScript, but she repeatedly receives an error
message. She reviews her code, as shown: open (“http://www.prolific.com”, “Pro Window” ,
“toolbar = 1 ,location = 1 ,menubar = 1 , scrollbars = 1 ,status = 1 ,resizable = 1”); Which one of
the following choices shows how Chiyo should rewrite this line of code so that no errors result
when it is executed?


Page 261 of 263« First...102030...259260261262263