Come ti hanno suggerito chiami la action nell'onload del body