<script type="text/javascript"> document.write('<input type="text" name="url" value="'+(window.location.href)+'" />'); </script>