how can i insert dynamic script tag inside the head tag like <script language="javascript"> function test(){ alert('hello'); } </script>
i want to add the above code in Head dynamically and also want test method working i tried to add script tag inside the head but it does not do so rather i can add any other tag like div, span etc thnx