[thelist] JavaScript adding to style.left in Standards mode

David Dorward evolt at david.us-lot.org
Sat May 8 06:01:43 CDT 2004

JavaScript question, it should be easy, but Google isn't cooperating

  element.style.left = 20 + 'px';

I want to get the 20 back. I'm sure JavaScript has something along the
lines of "Get the integer off the front of a string" which doesn't
involve regular expressions.

Can someone remind me what the syntax is please?

David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>

More information about the thelist mailing list