By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,687 Members | 1,806 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,687 IT Pros & Developers. It's quick & easy.

safari and scrollIntoView

P: n/a
anyone else had troubles getting scrollIntoView to work in Safari
v1.2.4? the sample code below works fine in all other browsers.

ben

<HTML>
<HEAD>
</HEAD>
<BODY>
<SPAN id='1'>1</SPAN><BR><BR><BR><BR><BR><BR>
<SPAN id='2'>2</SPAN><BR><BR><BR><BR><BR><BR>
<SPAN id='3'>3</SPAN><BR><BR><BR><BR><BR><BR>
<SPAN id='4'>4</SPAN><BR><BR><BR><BR><BR><BR>
<SCRIPT>
document.getElementById('4').scrollIntoView(true);
</SCRIPT>
</BODY>
</HTML>

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
bjarthur wrote:
anyone else had troubles getting scrollIntoView to work in Safari
v1.2.4? the sample code below works fine in all other browsers.


Have you tried:

alert(document.getElementById('4').scrollIntoView) ;

If it returns 'undefined', then it is unsupported and no amount
of cajoling will get it to 'work'.

--
Zif
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.