You are here: Re: Can html perform interactively or make decisions? « HTML « IT news, forums, messages
Re: Can html perform interactively or make decisions?

Posted by Toby Inkster on 02/27/06 16:30

David Graham wrote:

> I just ran the javascript you posted to see it work. When I put in 4 + 3 I
> get an answer of 43 - is that what you intended?

Not really -- posted without testing.

You can use the parseInt() function to convert from a string to an integer.

e.g.
var A = parseInt(document.getElementById('a'));

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация