Could someone tell me why "in-line" attribute used inside the tag, For example:
<script inline type="text/javascript"></script>
Without this attribute, the JS does not load in the page
Jay Blanchard
34.5k17 gold badges82 silver badges130 bronze badges
1 Answer 1
The 'inline' property does not exist for the script tag.
Nor does it exist in the list of global attributes
When people say "inline javascript" they're talking about using script tags to put javascript on the page
<script>
alert('hello world!!!');
</script>
Or just into an html tag
<a href="#" onclick="return false;">click here!</a>
as opposed to in a separate file.
<script src="script.js"></script>
answered Jun 17, 2015 at 15:59
castis
8,2144 gold badges45 silver badges66 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default
inlineattribute?