Go back to the previous page

history.back();

// Or
history.go(-1);
Previous
Get the selected text
Next
Insert an element after or before other element