Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lettucebo/bf636fefa902c4d2ac8578c2c9bf14de to your computer and use it in GitHub Desktop.
Save lettucebo/bf636fefa902c4d2ac8578c2c9bf14de to your computer and use it in GitHub Desktop.
<input type="hidden" id="xItem" name="xItem" value="<%=request.getParameter("xItem")%>" />
<script type="text/javascript">
function GetxItem()
{
var url = window.location.toString();
var t1 = url.split("?");
var t2 = t1[2].split("&");
var t3 = t2[0].split("=");
return t3[1];
}
document.getElementById('xItem').value = GetxItem();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment