Latest News

Printing functions in java script

Printing functions in java script



Printing function in javascript : There are Five types of printing functions in java script.
Document.write() : it is used to print the statements, variables and arrays.
NOTE : script tag consider the html tags like a statement. java script does not produce the error on web page. It written the error in console.
path of error console :
  • Tools
  • Web developer
  • Error console
Shortcut for error console in browsers : ctrl+shift + j
Document. write In() : It written the single character space after printing the statement and variables.
alert() : It used to print the statement in pop-up .
confirm() : It is also similar to alert box, but it is used to take conformation from the user.
Prompt() : It is used to take input from the user.
NOTE: prompt written the data type of input user is string.

No comments:

Post a Comment

eWeb Classes Powered by MV Innovative InfoTech Copyright © 2014

Theme images by Bim. Powered by Blogger.