MCQs > IT & Programming > JavaScript > Correct way to redirect to a URL in javascript?

JavaScript MCQs

Which of the following is/are the correct way to redirect to a URL in javascript?

Answer

Correct Answer: window.location.assign("http://www.foobar.com")

Explanation:

Note: This Question is unanswered, help us to find answer for this one

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

JavaScript Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it