title: Using <script> in CSS
body: <p>Is there any way to write script in css and call or execute it whenever required ?</p>
  
  <p>I need a <code>&lt;script&gt;</code> tag to be executed . </p>
  
  <p>i need something like this..</p>
  
  <p>css code</p>
  
  <pre><code>#execute{
  
  &lt;script&gt; ..some script.. &lt;/script&gt;
  
  }
  </code></pre>
  
  <p>so whenever i use </p>
  
  <pre><code>&lt;html&gt;
  
  .
  .
  .
  .&lt;div id="execute" /&gt;
  .
  .
  .
  .
  &lt;/html&gt;
  </code></pre>
  
  <p>so if i change the script changes will be reflected everywhere. </p>
  
  <p>Is it possible?</p>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>Is it possible to keep my  <code>&lt;script&gt;&lt;/script&gt;</code> tags inside some js file and i will host it. and then i will call some function() from my HTML so that the script will be executed everywhere i need it.</p>
  
  <p>Can someone show me any example, tutorial how i can do it.
  I don't have much information about the Js file and how the function should be called.</p>
  
  <p>Thank you all</p>