exam questions

Exam 98-382 All Questions

View all questions & answers for the 98-382 exam

Exam 98-382 topic 1 question 2 discussion

Actual exam question from Microsoft's 98-382
Question #: 2
Topic #: 1
[All 98-382 Questions]

DRAG DROP -
You are creating a web page with a script. The script will insert the window's location inside the page's input element.
How should you complete the code? To answer, drag the appropriate code segment to the correct locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
References: https://www.w3schools.com/js/js_window_location.asp

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
jp_1
Highly Voted 4 years, 6 months ago
<!DOCTYPE html> <html> <body> <input id="url" type="input"> <script> document.getElementById("url").value=window.location </script> </body> </html>
upvoted 8 times
...
computercat
Most Recent 3 years, 8 months ago
document.getElementById("url").value = window.location;
upvoted 1 times
...
codibel
3 years, 11 months ago
"input" is not a valid value of the attribute "type". Please advise.
upvoted 1 times
robin11
3 years ago
yes, good point.. anyone can explain that? ty in advance
upvoted 1 times
...
...
Ciupaz
4 years, 8 months ago
The third is "windows" and the fourth is "location".
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...