answersLogoWhite

0


Best Answer

This ensures that the script text does not appear in the page.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why are javascript sometimes hidden in xhtml document by putting them into xhtml comments?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are HTML comments?

Comments are used to give extra information to the person writing or updating the HTML, usually explaining what a piece of code does, or identifying a significant point in the document. Comments are not displayed on the webpage itself. They are only within the code. They are ignored by the browser. The concept of using comments comes from programming. Comments can also do other things, like get a piece of code to be ignored temporarily so that testing to see if there is a problem can be done. A comment is started by putting this <!-- and is finished by putting this --> with the comments in between them like this: <!-- This will be ignored by the browser-->


What can you use to clean the toliet?

Putting a tablet in the tank helps, but sometimes a stiff round brush is needed to clean the bowl.


What is logic behind Remember Password in javaScript?

It saves time and also user doesn't have to write the password somewhere or memorize it. Though for security reasons it is a bad practice. Putting password on a browser's password list or storing it inside local computer using cookies is a bad idea. Security is jeopardized if other users or hackers gain access to those files.


What is the main purpose of using comments in c plus plus?

The main advantage of the newer C++ comment syntax is that you only need to start the comment, and you can expect that it will last only until the end-of-line. With the older syntax, you needed to also stop the comment. any statement; /* old comment syntax */ any statement; // new comment syntax


What do you call the process of putting things together?

Assembly would be a name for putting things together.

Related questions

What are HTML comments?

Comments are used to give extra information to the person writing or updating the HTML, usually explaining what a piece of code does, or identifying a significant point in the document. Comments are not displayed on the webpage itself. They are only within the code. They are ignored by the browser. The concept of using comments comes from programming. Comments can also do other things, like get a piece of code to be ignored temporarily so that testing to see if there is a problem can be done. A comment is started by putting this <!-- and is finished by putting this --> with the comments in between them like this: <!-- This will be ignored by the browser-->


How do you remove data from one document before putting it into another?

cut and paste


Putting the key points of a long document into your own language in fewer words?

Summarizing


Why is the flag sometimes left in the hole when a player is putting?

no


What does print mean in Microsoft Word?

Print means putting the document you have on your screen onto paper.


What are the advantages and disadvantages of using header and footer?

Headers and Footers are used for automatically putting things on every page on a document or on alternating pages, without having to put them in page by page. In a book you will have the number on every page. That is done by putting them into the Footer or Header. Sometimes you will see the name of the book or the chapter on every page. That is done with Headers and Footers. Sometimes the pages will alternate, with different things on odd and even pages. Sometimes you have the name of the book on one page, and the chapter on the other page, when you have the book open. Using Headers and Footers you can put other things automatically for every page, like the date or the time, or the author of the document.


Which is an example of an ineffective way to display images in a technical document?

Putting all or most of the images together on a page. -Apex


What word defines putting the key points of a long document into your own language in fewer words?

The word you are looking for is 'paraphrasing.'


How do you get a tub of greese by putting your horse in the box on howrse?

It's luck. Sometimes you find one, sometimes you don't. Keep putting horses in the box for as long as you can and eventually you'll find one. ~Camigurl on howrse if you want to friend. :)


Why do headlights lights flicker and service light come on after driving and when putting car in park?

Have your alternator tested. They will sometimes do that when they are putting out low outputs at low rpm.


Can putting sharpie in your hair damage it?

Can putting sharpie on your hair damage it


Is putting a document into a testators will after death legal?

Given that a will is supposed to reflect the testator's wishes, I don't see how it could be amended after the testator's death.