サンエツのブログ
sanetsu-information のindex.phpとsingle.phpに記述
<div class=”text-center backBtn my-4 clearfix” style=”color:#0088cc;”><input type=”button” onclick=”window.history.back();” value=”直前のページに戻る”></div>
https://www.nishishi.com/javascript-tips/history-back.html