segunda-feira, 30 de maio de 2011

Exemplor de Criação de POP-UP em HTML

Exemplo

Clique Aqui


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

ValueDescription
URLThe URL of the link.
Possible values:
  • An absolute URL - points to another web site (like href="http://www.example.com/default.htm")
  • A relative URL - points to a file within a web site (like href="default.htm")
  • An anchor URL - points to an anchor within a page (like href="#top")


HTML target Attribute

Example

The target attribute specifies where to open the linked document:
Visit W3Schools

Try it yourself »

Definition and Usage

The target attribute specifies where to open the linked document.

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari
The target attribute is supported in all major browsers.

Syntax

Attribute Values

ValueDescription
_blankOpen the linked document in a new window or tab
_selfOpen the linked document in the same frame as it was clicked (this is default)
_parentOpen the linked document in the parent frameset
_topOpen the linked document in the full body of the window
framenameOpen the linked document in a named frame


onclick Event

Event Object Reference Event Object

Definition and Usage

The onclick event occurs when an object gets clicked.

Syntax

onclick="SomeJavaScriptCode"


Nenhum comentário:

Postar um comentário