Ravinder Reddy
Ravinder Reddy

Reputation: 21

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 is not working IE11, the city option is missing. When I select a county the city automatically loads. When I click the back button the country option shows up fine, but the city option is missing only in IE, other browsers are working fine.

Upvotes: 2

Views: 8469

Answers (1)

RahulKT
RahulKT

Reputation: 171

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 this works.And remember to close your tag properly

Upvotes: 3

Related Questions