JSFiddle - React, Tailwind, and code Playground
by webnotes42
HTML
<!--
* @author David Cheng
* @copyright (c) 2012, David Cheng
* @link http://webnotes42.blogspot.hk/ My blog
* @date 2012.08.25 AD.
-->
<!DOCTYPE html>
<!--
// close current window would not work in this page
// please copy this code, paste in some txt.file
// than convert it to html
-->
<div id="container">
<h3>My page
<div id="right">
<input type="button" value="Print" onclick="javascript: window.print();" />
<input type="button" value="close current window" onclick="javascript:var win = window.open('', '_self');win.close();return false;"
/>
</div>
</h3>
</div>
CSS
/**
* @author David Cheng
* @copyright (c) 2012, David Cheng
* @link http://webnotes42.blogspot.hk/ My blog
* @date 2012.08.25 AD.
*/
#container {background-color:#6495ed;}
#right{float:right;}