Top "Script-tag" questions

The <script> tag is an HTML element used to embed or include an executable script within an (x)HTML document/web-page.

"Unterminated template literal" syntax error when literal contains script tag

I'm using ES6 template literals to construct some HTML in strings, and so far it has been working fine. However, …

javascript html ecmascript-6 script-tag template-literals
Remove <script> tags using jQuery

I want to remove this Google Analytics block, using jQuery. <script type="text/javascript"> var gaJsHost = (("https:" == document.…

javascript jquery html script-tag
Can I have <SCRIPT> tag inside <TABLE>?

I got to have a tag inside a table because PHP writes a code there that adds stuff to an …

javascript html doctype script-tag
multiple versus single script tags

Is there any difference (performance, best practices, etc) between using a single script tag with embedded code in it, or …

javascript html script-tag
<script> tag inside jquery template

Backgroud: I have this template that includes videos from youtube being loaded with swfobject. Question: Is there a way to …

javascript ajax jquery-templates script-tag
Dynamically added script will not execute

I am dynamically adding a script of a github gist. If I added it to the html before the page …

javascript script-tag
Can I ask a browser to not run <script>s within an element?

Is it possible to tell browsers to not run JavaScript from specific parts of an HTML document? Like: <div …

javascript html script-tag
How can I use runat="server" on a script tag in asp.Net

I don't necessarily need to run it at server, however, I would like to use the ~/js/somefile.js syntax. …

asp.net relative-path script-tag runatserver
How to know that dynamically created script tag was executed?

I'm creating a script tag dynamically: var head = document.getElementsByTagName('head')[0]; var script = document.createElement('script'); script.type = 'text/javascript'; …

javascript createelement script-tag
Why doesn't my <script> tag work from php file? (jQuery involved here too)

Here is what I am trying to accomplish. I have a form that uses jQuery to make an AJAX call …

php javascript jquery ajax script-tag