What's the best way to insert an element into a page's HEAD directly before the closing tag using JavaScript?
...<HEAD>
<script>...</script>
<script>...</script>
<script>...</script>
<link .../>
<link .../>
<link title="MY NEW LINK ELEMENT" />
</HEAD>...
I know about the ol' insertBefore(sp1, sp2.nextSibling)
trick, but that just lets you drop something after a closing tag.