Table of Contents

Example

XHTML: semantics

<a href="foo.html"
  class="foolinks"
  onclick="fooFunc()">Click me!</a>

CSS: presentation

.foolinks {
  color: green;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

Javascript: behavior

function fooFunc() {
 popupWin = window.open(this.getAttribute('href'), '_foowindow');
}