PrepAway - Latest Free Exam Questions & Answers

Which code fragment should you use?

You are creating a Web application by using the Virtual Earth 6.0 map control.

A Web page of the application provides links to a number of pre-defined locations. The application must meet the following requirements:

The links can be shared.
The links are encoded with map properties.
Users can copy the links to the Windows clipboard.

You need to write code to meet the requirements.

Which code fragment should you use?

PrepAway - Latest Free Exam Questions & Answers

A.
<a id=”Link” href=”http:
//www.mymappingsite.com/mymappage.aspx?40.689167&-74.04472&16&h”>Liberty</a>

B.
<code id=”Link”
onclick=”window.open(location.protocol+location.pathname+’?40.689167&-74.04472&16&h’);”> Liberty </code>

C.
<button id=”Link” onclick=”location.replace(‘ http:
//www.mymappingsite.com/mymappage.aspx?40.689167&-74.04472&16&h’);”> Liberty </button>

D.
<address id=”Link”
onclick=”location.replace(location.protocol+location.pathname+’?40.689167&-74.04472&16&h’);”> Liberty </address>


Leave a Reply