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

Hassan Schroeder hassan at webtuitive.com
Sat May 8 07:23:05 CDT 2004


David Dorward wrote:

> Given:
>   element.style.left = 20 + 'px';
> 
> I want to get the 20 back. 

parseInt(element.style.left) will return 20

HTH,
-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.




More information about the thelist mailing list