Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6469513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:00:01+00:00 2026-05-25T06:00:01+00:00

I found this mdn document for the a tag but it does not list

  • 0

I found this mdn document for the a tag but it does not list the hostname attribute. Where can I get info. on this? This is an attribute/property of the anchor object correct? And why the hell is this thing called an anchor instead of a link? That’s what it is..a hyperlink. Getting frustated with finding documentation…maybe I just overlooked it…actually I ran a search for hostname and no go.

Basically if I have

  b=document.createElement('a')
  b.href=c[2].value;

I can access

b.hostname

but I need documention for this property.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:00:02+00:00Added an answer on May 25, 2026 at 6:00 am

    mdn is not the standard, which does mention the hostname attribute.

    An <a> element is usually a link (i.e. its href property is set). However, you can also use it as an anchor, as in:

    <a href="#bottom">Bottom</a>
    <a name="bottom">This is an anchor</a>
    

    This functionality is obsolete; you can now set the id attribute of any element instead:

    <a href="#bottom">Bottom</a>
    <div id="bottom">This is an anchor</div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this in an article on Multithreaded Apartments, but can’t find a definition
I found this PECL package called threads , but there is not a release
Found this recently, but can't for the life of me figure out how the
I found this code snippet here , but I just can't figure out what
Found this: Sub SurroundWithAppendTag() DTE.ActiveDocument.Selection.Text = .Append( + DTE.ActiveDocument.Selection.Text + ) End Sub But
found this regex: insert every 10 characters: $text = preg_replace(|(.{10})|u, \${1}. , $text); can
I found this link http://artis.imag.fr/~Xavier.Decoret/resources/glsl-mode/ , but there isn't a lot of description around
Found this method of having DIV as custom google maps infoWindow. It works, but
I found this issue with distanceFromLocation function where the return value is not accurate.
This is snippet is found here , in an MDN article describing generators and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.