LesHurley Posted December 1, 2009 Report Share Posted December 1, 2009 In JavaScript, how can one clear the screen in response to an input box in preparation for something new? thanks. Link to comment Share on other sites More sharing options...
Ingolme Posted December 1, 2009 Report Share Posted December 1, 2009 You need to know what your "screen" is. You would just set an empty string as the innerHTML of the element. Be sure not to delete the user controls unless that's part of the process. document.getElementById("myscreenobject").innerHTML = ''; Link to comment Share on other sites More sharing options...
jeffman Posted December 1, 2009 Report Share Posted December 1, 2009 Enter "cls" at the DOS prompt.Oops. Wrong decade . . . Link to comment Share on other sites More sharing options...
thescientist Posted December 1, 2009 Report Share Posted December 1, 2009 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now