Well, I should explain you better because I forgot somethings to mention.
The fact is, I have "1.html" where I have a link to "2.html". In "1.html " I have a script call (<script src=....js>...). This script, when I click the hyperlink, should add a script call between head tags in the "2.html". So, before the "2.html" loads, the .js file should add the line <script src=...js> to the "2.html" and when it loads, the new call script works. I read that it could be possible add title tags from a script so I suppose that it could be add anything between the head tags.
Kind regards