javascript - Programmatically scroll iframe on ios -


i have wide iframe embedded on page with:

<div class="iframecontainer" style="overflow: auto; -webkit-overflow-scrolling: touch; width: 300px;"> <iframe src="myiframe.html" style="border: none; width: 1020px; height: 520px;"></iframe> </div> 

it allows user scroll horizontally on ios , works well.

now want content of iframe programmatically scroll right when loaded. used following on myiframe.html page:

$(this).scrollleft(1000); 

it works except on ios. on iphone, nothing happening, iframe doesn't scroll.

i've searched solutions couldn't find any. has idea?

thanks!


Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

'hasOwnProperty' in javascript -

Trouble making a JSON string -