Ram's banking website has a 'Check Interest Rates' button that should redirect users to a separate page. Which JavaScript code accomplishes this?
Answer options
A
location.href = "url"
B
url.newlocation
C
window.redirect("url")
D
document.location("url")
Correct answer: location.href = "url"
Explanation
Quick AnswerThe correct answer is location.href = "url" because it directly addresses the core logic of Web Technology.
This question has been retained as-is due to its unique context.