YouTip LogoYouTip

Prop Body Alink

# Body aLink Property [![Image 8: Body Object Reference](#) Body Object](#) * * * ## Definition and Usage The aLink property sets or returns the value of the alink attribute in the body element. The alink attribute specifies the color of a link when clicked (when the link is clicked). ## Syntax Set the aLink property: bodyObject.aLink="_color_" Return the aLink property: bodyObject.aLink | Value | Description | | :--- | :--- | | _color_ | Specifies the link color. See the complete (#) | * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) All major browsers support the aLink property. * * * ## Example ## Example Return the link color, the color of the link when clicked:

HTML Tutorial

document.write("The unvisited link color is: ") document.write(document.getElementById("tutorial").link); document.write("
The active link color is: ") document.write(document.getElementById("tutorial").aLink); document.write("
The visited link color is: ") document.write(document.getElementById("tutorial").vLink); [Try it yourself Β»](#) * * Body Object](#)
← Prop Body BackgroundProp Area Search β†’