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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

Command prompt result in label. Python 2.7 -