November 8th, 2013, 08:42 AM
November 8th, 2013, 08:55 AM
you can't just use html_content + 1, because html_content is a string, and this will turn the addition into string concatenation. You have to convert the string into an integer first: parseInt().
November 8th, 2013, 08:59 AM
i just did....but thaks for your help
November 8th, 2013, 09:06 AM
Acording to the Mozilla developer network (the link I gave you), you should specify the radix in the parseInt() function:
var my = parseInt(MyDiv1.innerHTML, 10);
November 8th, 2013, 09:40 AM
If i put that "10" doesn't work and sometimes not with my code sometimes it works sometimes no why?? And how i can kep the number even if the user change the page??