I need to do the following vbscript block only using javascript. I have no choice but to use javascript. I wish I did

<%somevariable = request.querystring("datafield")%>