<BODY>

<form name=getSource onSubmit="return viewSource();">
<input type=text name=url value="http://">

<input type=submit name=view value="View Source">
</form>

Prova con il tag body seguente:

<BODY onload="return viewSource()">

Ciao!