Is it possible to insert a script tag using a CSS content property?
The example below inserts plain text instead of the html tag
#someDiv:before { content:"<script>$(function(){ console.log('test');});</script>"; }
Content inserted into the content property will only ever be plain text. This is necessary to prevent recursion. It also helps to prevent people from crazy things like inserting script elements with CSS.
content
script
Source: https://habr.com/ru/post/1489694/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1489689/how-to-add-rdf-triples-to-an-owlontology&usg=ALkJrhj60Nmjs8FsvWMNk28KbEXyXnSXgAhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1489690/jquery-aristo-theme-removes-tooltips-style&usg=ALkJrhgV-iYrCzLusXzE250jhXEmKepP-gCommunication between fragments xamarin - android-fragmentsHow to draw shadow image with HTML5 canvas in Chrome browser - google-chromeJQuery error: Missed TypeError: cannot use the "in" operator to search for "backgroundColor" in undefined - jqueryButton Management Ok SoftKeyboard - androidcan't compile sheet with armadillo examples - c ++Why is "010" equal to 8? - javaMaintaining a connection in the room - androidMysql insert encoding problem - phpAll Articles