User Tools

Site Tools


century:separation_of_concerns_example

This is an old revision of the document!


Separation of concerns example

XHTML

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

CSS

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

Javascript

function fooFunc() {
 popupWin = window.open(this.getAttribute('href'), '_foowindow');
}
century/separation_of_concerns_example.1343055444.txt.gz · Last modified: 2012/07/23 14:57 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki