Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!doctype html>
<script src="https://raw.github.com/jed/dom-o/master/dom-o.js"></script>
 
document.replaceChild(
HTML({lang: "en"},
  HEAD(
    TITLE("Hello, world"),
    STYLE({type: "text/css"},
      CSS("#container",
        {backgroundColor: "#eee"},
        roundedCorners(5)
      )
    )
  ),
  BODY(
    DIV({id: "container"},
      "For more details about dom-o, see the source: ",
      A({href: "//github.com/jed/dom-o/blob/master/dom-o.js"}, "View source")
    )
  )
)
, document.documentElement)
function roundedCorners(radius) {
  return {
    borderRadius       : radius,
    WebkitBorderRadius : radius,
    MozBorderRadius    : radius
  }
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers