I have written a very useful extension for dreamweaver that works perfectly.
But now I want it to insert the code ABOVE the html rather then being forced to
insert it somewhere between the body tags. what needs to happen to make that
change?

I tried using things like
var dom = dw.getDocumentDOM();
dom.source.startOfDocument();

but couldn't implement correctly apparently.

I'm currently using the function objectTag(form) {
do I need the insertobject ?

thanks in advance.