To answer this question, let's analyze the given statement:
window.location.href="www.google.com"
This statement assigns the value "www.google.com" to the href
property of the window.location
object. The window.location
object represents the current URL of the browser window.
When this statement is executed, it will navigate the browser to the URL specified, which in this case is "www.google.com". So, the correct answer is option C - It will execute and www.google.com is going to open.