This post Populate Query String to new form helped me.
<script type="text/javascript">
// this line works for chrome only window.addEventListener("load", function(){
//....
document.onreadystatechange = function(){
if(document.readyState === 'complete'){
var URL= String(window.location.href);
//URL.substring(URL.indexOf("=")+1,URL.length)
alert(URL.substring(URL.indexOf("=")+1,URL.length));
document.getElementById("ctl00_m_g_a8ed3c5c_7048_43bd_b68a_52ec97ab99af_ctl00_ctl02_ctl00_ctl00_ctl00_ctl04_ctl00_ctl00_TextField").value = URL.substring(URL.indexOf("=")+1,URL.length);
}
}
</script>