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.

How to dynamically insert a <script> tag via jQuery after page load?

I'm having problems getting this to work. I first tried setting my script tags as strings and then using jquery …

javascript jquery script-tag javascript-injection
How to force a script reload and re-execute?

I have a page that is loading a script from a third party (news feed). The src url for the …

javascript html feed script-tag
HTML/Javascript: how to access JSON data loaded in a script tag with src set

I have this JSON file I generate in the server I want to make accessible on the client as the …

javascript json html script-tag
How to tell if a <script> tag failed to load

I'm dynamically adding <script> tags to a page's <head>, and I'd like to be able to …

javascript onerror script-tag
How to pass parameters to a Script tag?

I read the tutorial DIY widgets - How to embed your site on another site for XSS Widgets by Dr. …

javascript parameters widget xss script-tag
Get content inside script as text

I would like to print the content of a script tag is that possible with jquery? index.html <script …

javascript jquery script-tag
React: Script tag not working when inserted using dangerouslySetInnerHTML

I'm trying to set html sent from my server to show inside a div using dangerouslySetInnerHTML property in React. I …

javascript html reactjs script-tag
How does HTML tags work inside script tag?

For example, view-source at Joel Spolsky's public career profile <script type="text/html" id="stackexchangeanswerswidget"> <h3>…

javascript html script-tag
Absolute path in JavaScript script tag

Is there an absolute path while declaring the tag? this will resolve if I have a aspx page in a …

javascript asp.net script-tag
Does an external .js file require <script> tags?

Does an external .js file require internal and containing tags to work?

javascript script-tag external-js