T
Thomas K. Nielsen
Hi I dynamically insert some stylesheets. I want them to be placed
before some javascript is executed. I know I can add an id to the
scripttag that I want the stylesheets to be insert above, but I then
have a problem with with backward compability(need to insert that id
to many pages) and I have a problem if my colleagues forget to add
that id to the script tag.
My question is can I locate a javascript funtion - ie I have a
initPage function that I know should
always be on the page - can I locate what script tag element that
function is located in and then use that to insert the stylesheets
above that script tag? How do I locate the script tag? I cannot be
sure that the script tag is always the last on the page.
Thanks in advance
before some javascript is executed. I know I can add an id to the
scripttag that I want the stylesheets to be insert above, but I then
have a problem with with backward compability(need to insert that id
to many pages) and I have a problem if my colleagues forget to add
that id to the script tag.
My question is can I locate a javascript funtion - ie I have a
initPage function that I know should
always be on the page - can I locate what script tag element that
function is located in and then use that to insert the stylesheets
above that script tag? How do I locate the script tag? I cannot be
sure that the script tag is always the last on the page.
Thanks in advance