GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes  how to remove text from canvas in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark " how to remove text from canvas in javascript" Watch " how to remove text from canvas in javascript" New topic
Author

how to remove text from canvas in javascript

pravin rasal
Ranch Hand

Joined: Jul 27, 2011
Posts: 63
my problem is that when i am clicking on button, callfunction() method called and counter is incremented by 5, when i am again click counter incremented by 5 and displayed 10 on given location my problem is that when counter is incremented previous number is not erased and displayed incremented number on previous number.I want to remove previous number and display next incremented number. i have following code
Nikhil Padharia
Ranch Hand

Joined: Apr 19, 2012
Posts: 37
You can clear the canvas before refilling it with

pravin rasal
Ranch Hand

Joined: Jul 27, 2011
Posts: 63
thank you so much
 
GeeCON Prague 2014
 
subject: how to remove text from canvas in javascript