<input value="MAX BUY" onClick="document.store.item1.value=200000;characterCount(500000000);" type="button"> <a href="#" onclick="document.store.item1.value=200000;characterCount(500000000);">MAX BUY</a> Let's say I have scrolled to the mid way of the page and click the button with the JS code, it fills the textbox item1 nicely, but with the second url version it takes the page to the top and I have to scroll back down. Is there anyway to make it not scroll up and stay where it is without using a button?