javascript - how to stop a fixed input at the top of a page from making the ipad browser scroll up on focus -
i have responsive site top navigation fixed scroll down age header stay @ top edge of browser. in header search input. on iphones , ipads, when user taps in field page scroll top.
i want stop because user decides not search , taps out of search field, should bee left off versus @ top of page.
i have found articles using overflows on scrollable divs, not case plain page. have anchor book marks allows user go sections of page, , lots of home page content. want user able drag way down page, or click on anchor. have ability click search , not have page zip top.
how go javascript have tried preventdefault on focus of field no luck.
any appreciated.
thanks
jeff
Comments
Post a Comment