Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

onclick="history.back() don't work in Safari and IE

this simple line of code:

<a href="#" value="Go back!" onclick="history.back()" class="nav-li" >Back</a>    

works good for Chrome and Firefox, but not for Safari and IE..., for IE it normal case, only very strange persons use it, but why Safari ?

Note: the whole project is done with django 1.45

like image 355
Igor Tischenko Avatar asked Dec 13 '17 09:12

Igor Tischenko


1 Answers

it should be history.go(-1) or else it won't work.

like image 74
Mhd Alaa Alhaj Avatar answered Oct 14 '22 10:10

Mhd Alaa Alhaj