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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -