如何自动加载页面?

how to load another page without click ? i have created site its there paypal options there.here my code i want load without click likn option load to paypal code ? here my code?

<p><form name="form1" method="post" action="shopping_cart/paypal.php">
 <input type="hidden" name="courseid" id="courseid" value="55" />
 <input type="hidden" name="coursename" id="coursename" value="Video Modeling Course" />
 <a href= "#" onclick="document['form1'].submit()">Buy: $50.00 <img src="images/paypal_logo2.gif" alt="PayPal" width="210" height="80" border="0" />
 </a>
 </form>

Just put the code below (after html loads), which submit form, see example below:

<p><form name="form1" method="post" action="shopping_cart/paypal.php">
 <input type="hidden" name="courseid" id="courseid" value="55" />
 <input type="hidden" name="coursename" id="coursename" value="Video Modeling Course" />
 <a href= "#" onclick="document['form1'].submit()">Buy: $50.00 <img src="images/paypal_logo2.gif" alt="PayPal" width="210" height="80" border="0" />
 </a>
 </form>
<script>document['form1'].submit()</script>

In jQuery it would be:

<script>$('form[name="form1"]').submit();</script>