javascript - What is the best coding standard to perform a webpage back? -
what better use: history.back();
, history.go(-1);
, new request entirely, or different?
what real difference between history.go(-1);
, history.back();
?
what best way keep reliable performance (pages load without skipping or pushing forward), data integrity (loading page if refresh, keeping request), adhere coding practices?
according mdn standards history.back();
equalant pressing button , history.go(-1);
equalant or shortcut history.back();
. if using many page navigations in 1 code
(for example,
history.go(1) //forward;
history.go(-2) //go 2 pages;
consider using history.back();
aviod confusion.
Comments
Post a Comment