<script>
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const product = urlParams.get('product')
document.querySelector(“.listing_id input”).value = product;
</script>