0
If i add a script inside a div element will it be applied onto whole body or just that div?
4 Réponses
+ 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
+ 2
What is it you want to do?
+ 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.
0
is there any other way I could do what I wanted?