This is a simple program , just displays text message that is given by the user.
Type the following code in notepad or copy and paste it in the note pad.
document.write("Welcome to DotnetSpider Tutorials!");
Save the code that is written in notepad as First.Html
A file with extension .html is created.
On the other hand document.write is used to write the output for the page.
What ever the text that is given in the “” that is executed.
Ending the statements with ‘;’ is not mandatory. It’s developer choice to omit or use.
But how ever semicolons are needed if we want to write more than one statement on a single line. But it is always a good practice to make our code as readable and beautify it proper indentation . So it's suggested to seperate the multiple statements ,instead of clubbing all the statements in a single line.
To run it:
Like how you run a simple HTML program just double click on the First.html Or Right click on the mouse and click on browse.