MCQ Single Best Answer Easy

QWhat kind of data does the hash property return?

ID: #5090 Javascript DOM & Event Handling MCQ 126 views
Question Info
#5090Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Query string
  • B Packets
  • C String
  • D Fragment identifier
Correct Answer: Option D

Explanation

The anchor portion of a URL is set or returned by the hash attribute. If a hash mark (#) and an element ID are present, the hash property returns the "fragment identifier" component of the URL.
It can be reached by using the location.hash statement.

Share This Question

Challenge a friend or share with your study group.