| | |
| | <input type="submit" value="Curl" /> |
| | + <button type="button" id="sample-button">Sample</button> |
| | |
| | <?php |
 |
| | |
| | output.className = oldClass; |
| | +}); |
| | + |
| | +var sampleButton = document.getElementById( 'sample-button' ); |
| | + |
| | +sampleButton.addEventListener( 'click', function( event ) { |
| | + var source = document.getElementById( 'source' ); |
| | + source.value = "''E's got a 'ittle box 'n a big 'un,' she said, 'wit' th' 'ittle 'un 'bout 2'×6". An' no, y'ain't cryin' on th' \"soap box\" to me no mo, y'hear. 'Cause it 'tweren't ever a spec o' fun!' I says to my frien'."; |
| | }); |
| | </script> |