Onde: HREF ATTRIBUTE
Definition and Usage
The href attribute specifies the destination of a link.
The href or the name attribute must be present in the tag.
Browser Support
Syntax
Attribute Values
| Value | Description |
|---|---|
| URL | The URL of the link. Possible values:
|
HTML target Attribute
ExampleThe target attribute specifies where to open the linked document:
Try it yourself » |
Definition and Usage
The target attribute specifies where to open the linked document.
Browser Support
The target attribute is supported in all major browsers.
Syntax
Attribute Values
| Value | Description |
|---|---|
| _blank | Open the linked document in a new window or tab |
| _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 |
onclick Event
Definition and Usage
The onclick event occurs when an object gets clicked.
Syntax
| onclick="SomeJavaScriptCode" |
Nenhum comentário:
Postar um comentário