자바스크립트 페이지 뒤로가기 후 새로고침

in #javascript7 years ago

location.href = document.referrer; //뒤로가기 후 새로고침이 필요할때 사용한다.

history.back(); // 뒤로 가기

history.back(-1); // 숫자만큼 뒤로가기

history.back(-2); // 숫자만큼 뒤로가기

history.back(-3); // 숫자만큼 뒤로가기

Sort:  

Congratulations @songskysun! You received a personal award!

1 Year on Steemit

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @songskysun! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!