Skip to content

Instantly share code, notes, and snippets.

@breezhang
Created June 3, 2014 06:48
Show Gist options
  • Save breezhang/3ab788f11ce740bdbad6 to your computer and use it in GitHub Desktop.
Save breezhang/3ab788f11ce740bdbad6 to your computer and use it in GitHub Desktop.
javascript injection
script inject
<script id="id300" type="text/javascript">
var a= 12345;
</script>
do this ^_^
var cc = $("#id300").html();
cc +="var c=9000";
$("#id300").text(cc);
console.log($("#id300").html());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment