Latest

recent

HTML frame name Attribute

Definition and Usage

The name attribute is an identification for the URL (web resource).
This attribute is used together with the "target" attribute in links to specify which frame the link should be opened in. It can also be used for scripting purposes.

Syntax

<frame name="name_id" />

Syntax Example

<frame name="frame_a" />

Attribute Values

Value Description
name_id Specifies the name of the frame.Naming rules:
  • Must begin with a letter A-Z or a-z
  • Can be followed by: letters (A-Za-z), digits (0-9), hyphens ("-"), underscores ("_"), colons (":"), and periods (".")
  • Values are case-sensitive


Browser Support

The attribute is supported in all major browsers.

Example

<html>
<frameset cols="50%,50%">
<frame src="frame_a.htm" name="frame_a" />
<frame src="frame_b.htm" />
</frameset>
</html>
HTML frame name Attribute Reviewed by 1000sourcecodes on 03:25 Rating: 5
Powered by Blogger.