Go back to the previous page

history.back();
// Or
history.go(-1);