Want this question answered?
Be notified when an answer is posted
Chat with our AI personalities
To add javascript code in HTML, you have to include the script tag on top. It can be added as <script src="source of script"></script>
Javascript inside html <html> <head> <script type="text/javascript" language="javascript"> // Java script code here </script> <body> // html code here </body> </html> Via External Link: <html> <head> <script type="text/javascript" language="javascript" src="location of js file"> </script> <body> // html code here </body> </html>
Not comparable. JavaScript is a programming language. Dreamweaver is an application (which you can use to create pages with javascript, html, etc.)
Use the length property of string in javascript.
There is no such HTML code.You can use JavaScript, however, to store a cookie on the users system. This bit of code can be used to store relatively small amounts of data, but allows for tracking the user and some related user data determined by the programmer from page to page.