Change the target for a specific area in an image-map:
The target property sets or returns the value of the target attribute of an area.
The target attribute specifies where to open the linked document.
The target property is supported in all major browsers.
Return the target property:
Set the target property:
Value | Description |
---|---|
_blank | Open the linked document in a new window |
_self | Open the linked document in the same frame as it was clicked (this is default) |
_parent | Open the linked document in the parent frameset |
_top | Open the linked document in the full body of the window |
framename | Open the linked document in a named frame |
Return Value: | A String, representing where to open the linked document |
---|
Get the target of a specific area in an image-map:
The result of x will be:
HTML reference: HTML <area> target attribute