Skip to content

Instantly share code, notes, and snippets.

@orangkucing
Created June 17, 2012 18:37
Show Gist options
  • Save orangkucing/2945373 to your computer and use it in GitHub Desktop.
Save orangkucing/2945373 to your computer and use it in GitHub Desktop.
<form name="form6182" action="javascript:action6182();">
<input type="text" size="50">
<input type="submit" value="Show">
</form>
<span></span><script type="text/javascript">//<![CDATA[
span6182 = document.getElementsByTagName('script');
span6182 = span6182[span6182.length - 1].previousSibling;
function action6182 () {
span6182.innerHTML = document.form6182.elements[0].value;
}
//]]></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment