Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 18th, 2012  |  syntax: None  |  size: 0.38 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE html>
  2. <title>Foo</title>
  3. <div>Expected value: <b>undefined</b></div>
  4. <div>Actual value: <b id="ret"></b></div>
  5. <script>
  6.   // write a small example that shows off the API for your example
  7.   // and tests it in one fell swoop.
  8.  
  9.   var myFunction = function(){ /* the code here should be identical to the entry. */ }
  10.  
  11.   document.getElementById( "ret" ).innerHTML = myFunction()
  12. </script>