javascript - The onclick function is not working in safari -


kindly me on because code works in chrome onclick function ok when run in safari in won't go in #download id , won't reload page.

here code:

<a href="#download" onclick='window.location.reload(true);'> <div class="download">   <p class="download_text">downloaded</p>   </a> 

can try function:

function reload() {   if (window.location.href != "download.html#") {    window.location.href="download.html#"  }  } reload() 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -