0

Test Page: http://www.eojmarket.com/index.php?pag=26

Code below:

<script language="JavaScript">
function function1(){
window.scrollTo(0,265);
}
</script>
<input type="button" value="Go" onClick="function1();">

Question: Is it possible to get rid of the button and have it scroll to 0,265 on page load ?

Comment: <body onload="function1();"> doesn't appear to work.

1
Contributor
1
Reply
2
Views
6 Years
Discussion Span
Last Post by MoreBloodWine
0

Problem solved with the below...

<script language="javascript">
window.onload = function function1(){
window.scrollTo(0,265);
}
</script>

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.