Calendar - Backsapce in read-only text field

Figured out my sensitive date range question, using:



    dateFrom = new Date();

    dateTo = new Date();

    dateTo.setDate(dateTo.getDate()+90);

    cal1.setSensitive(dateFrom, dateTo);



However, I have discovered a small problem. If you click in the text field to pop-up the calendar, the hit the backspace, the browser is going back a page in history. Using IE8.




>> However, I have discovered a small problem. If you click in the text field to pop-up the calendar, the hit the backspace, the browser is going back a page in history. Using IE8.


This is the default IE behaviour. The calendar doesn’t set any event handlers to the input except onclick to open calendar.