<html> <head> </head> <body onLoad="document.getElementById('url').value=window.location"> <input type="text" id="url" /> </body> </html>