You are here: Reference > JavaScript > client-side > HTML DOM > properties > profile (head)

profile property (head)

Browser support:
Specifies or returns one or more URIs for a meta-information dictionary.
The profile property can provide more information for the browser to understand the specified meta-information (the value of the meta's content property).

Syntax:

object.profile;
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: profile

Possible values:

String that sets or retrieves a space-separated list of URIs. If URLs are used, then they can be absolute or relative paths as well. Relative paths are relative to the base URL. The base URL is the location of the current document, but it can be overridden by the base tag.
Default: this property has no default value.

Example HTML code 1:

This example illustrates the use of the profile attribute:
<head profile="http://www.dottoro.com/metainformation">
    <meta name="author" content="Dottoro" />
    <meta name="copyright" content="&copy; 2009 Dottoro.com" />
    <meta name="keywords" content="HTML,examples,help" />
    <meta name="date" content="2009-01-06T11:20:37+00:00" />
</head>
Did you find this example helpful? yes no

Example HTML code 2:

This example illustrates the use of the profile property:
<head profile="http://www.dottoro.com/metainformation">
    <meta name="author" content="Dottoro" />
    <meta name="copyright" content="&copy; 2009 Dottoro.com" />
    <meta name="keywords" content="HTML,examples,help" />
    <meta name="date" content="2009-01-06T11:20:37+00:00" />
    <script type="text/javascript">
        function GetProfile () {
            var heads = document.getElementsByTagName ("head");
            alert (heads[0].profile);
        }
    </script>
</head>
<body>
    <button onclick="GetProfile ();">Get profile!</button>
</body>
Did you find this example helpful? yes no

Supported by objects:

External links:

User Contributed Comments

Post Content

Post Content