0

If i add a script inside a div element will it be applied onto whole body or just that div?

9th Nov 2018, 6:10 PM
Asirbachan
Asirbachan - avatar
4 odpowiedzi
+ 1
should be just the div if you do it correctly. it depends on what you are trying to do. best to just do it and see
9th Nov 2018, 7:25 PM
Jason Kennedy
+ 2
What is it you want to do?
12th Nov 2018, 6:53 PM
David Carroll
David Carroll - avatar
+ 1
The script tag itself will be an HTML child element to the div element. However, the JavaScript code that is loaded from that script tag will have no connection to the div element.
12th Nov 2018, 9:46 AM
David Carroll
David Carroll - avatar
0
is there any other way I could do what I wanted?
12th Nov 2018, 3:43 PM
Asirbachan
Asirbachan - avatar