CIW JavaScript Fundamentals exam 1D0-435 Question # 19 Topic 2 Discussion

CIW JavaScript Fundamentals exam 1D0-435 Question # 19 Topic 2 Discussion

1D0-435 Exam Topic 2 Question 19 Discussion:
Question #: 19
Topic #: 2

Ling wants to add a button to her Web page that will transport the user to another Web page. She does not to use a hyperlink, so she includes the following JavaScript:

onClick = “href(http://219.155.184.2);” >

The code does not function as Ling intended.

Which of the following choices shows how she should rewrite the script to make it function correctly?


A.

onClick=”location.href=”http://219.155.184.2’:” >


B.

onClick=”href = ‘http://219.155.184.2’: “ >


C.

Click=”href=”http://219.155.184.2’:” >


D.

onClick=”location.href=”http://219.155.184.2“;” >


Get Premium 1D0-435 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.