How to embed javascript in a web page?



How to embed javascript in a web page?..

Answer / Ravi Kant Rai

JavaScript can be embedded in a web page by using the `<script>` tag within the HTML code. The script can be placed either inside the head section or within the body section.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What does a typeof operator do?

1 Answers  


What are the five data types?

1 Answers  


How do you sort in javascript?

1 Answers  


Can you give an example showing javascript hoisting?

1 Answers  


What is the function of deferred scripts?

1 Answers  


How to set the cursor to wait?

1 Answers  


Event bubbling and Event Capturing in JavScript?

1 Answers  


hi iM rahul.my questions is my project is a web based & developed using java,jsp. when i record it using qtp what script i will get like either browser("jdfjkf").page("nkf").... or javawindow("f d ").javaedit("Dasf").... plz clarify my doubt asap and i also need some vbscipt of java coding?

1 Answers  


What is the instanceof operator in JavaScript?

1 Answers  


What's Prototypes for JavaScript

1 Answers  


What is javascript tree shaking?

1 Answers  


How to define a anonymous function?

1 Answers  


Categories