PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

A.
history.back (3);

B.
history.back();

C.
history.go(-3);

D.
history.go();


Leave a Reply