javascript - window.history.back();return false;" not working in IE11 -
<select id='orgincountryid' onchange='fillsubdropdownlist(this.value)'> <option>-- select country --</option> <option>malaysia</option> <option>philippines</option> </select> <select id='orgincityid'> <option>-- select city/town --</option> <option>kuala lumpur</option> <option>manila</option> </select> <a href="#" onclick="window.history.back();return false;" class="btngrey"><span>back</span></>
it not working ie11, city option missing. when select county city automatically loads. when click button country option shows fine, city option missing in ie, other browsers working fine.
try
<a href="#" onclick="window.history.go(-1); return false;" class="btngrey"><span>back</span></a>
or
<a href="#" onclick="history.go(-1); return false;" class="btngrey"><span>back</span></a>
hope works.and remember close tag properly
Comments
Post a Comment