Let’s say the following line we have in our HTML −
<input type="Button" value="Result" onclick="alert(‘Hello World!’);"/>
- You should consider inline script elements such as <script>...</script>) if the script only to be used for a single page.
- Use external script elements such as <script src="..."></script>) for most scripts, especially if reused between pages.
Published on 16-Jan-2018 10:31:47