Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
HTMLとcssだけのモバイルWebサイトがあります。ユーザーが前のページに戻ることができる戻るボタンが必要です。
history.go(-1) このメソッドは私のモバイルでは機能しません。この戻るボタンをコーディングする方法。私を助けてください
まず、携帯電話のブラウザで JavaScript を有効にする必要があります。これで実際に動作するはずです。
<a href="history.go(-1)">Back to Results</a>
重要なのは、「onclick」ではなく「href」にあります