Mengao Posted May 12, 2007 Share Posted May 12, 2007 I tested them and I know they do the same thing, but why almost all webpages use history.go(-1)?Is it more recommended?Thanks in advanceMengao Link to comment Share on other sites More sharing options...
Lulzim Posted May 12, 2007 Share Posted May 12, 2007 The only difference I know is that history.back() can go only one step back from current position while history.go() takes as argument the number of steps you want to go back. It can be history.go(-1) or history.go(-3)...Also history.go can have a positive number as argument, which means it will go forward Link to comment Share on other sites More sharing options...
Mengao Posted May 20, 2007 Author Share Posted May 20, 2007 The only difference I know is that history.back() can go only one step back from current position while history.go() takes as argument the number of steps you want to go back. It can be history.go(-1) or history.go(-3)...Also history.go can have a positive number as argument, which means it will go forwardOk. Thanks Lulzim! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.