Vlad Vlad - 2 years ago 89
Javascript Question

How to place page on top after the reload?

var $form = $('form');
$form.submit(function() {
$.post($(this).attr('action'), $(this).serialize(), function(response) {
alert("Your form is submitted");
}, 'json');
return false;

How do I place the user at the top of the page after I forced


Answer Source

That will take the page to the top after your alert and then reload which will load the page where it left off (at the top in this case).

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download