Tag Archives: tip

Unicode Numbers In Javascript

Handling Non-ASCII Numerals In Javascript — The Way It Should Have Been Handled Source code available at uninums on github. A couple of weeks ago, I ranted about the lack of proper Unicode support in Javascript. Granted, Javascript supports Unicode … Continue reading

Posted in Javascript | Tagged , , | 7 Comments

Scrolling The Selection Into View

Scrolling Text Nodes And Ranges Into View In A Cross-Browser Manner Scrolling an HTML element into view can easily be achieved using the scrollIntoView() function. But what about text nodes, ranges and selections? var o = document.getElementById(‘foo’); o.scrollIntoView(); The scrollIntoView() … Continue reading

Posted in Javascript | Tagged , | 5 Comments