head = document.getElementsByTagName('head');
head.innerHTML += '<script src=\'url_here.js\'><\/script>';

most modern browsers support .innerHTML -- I remember someone saying
it was part of the standard now, although MS dhtml reference doesn't
mention it... I haven't looked at the w3c spec for DOM recently...

> I don't think there's such a thing as a Javascript include
> function or
> method.

> I've been wanting one for a LONG LONG time and never seen
> such a beast.

> Am I wrong?  Please tell me I'm wrong and that there IS a
> standard,
> cross browser way of including a javascript file that can
> reference
> other javascript files.

> (ps. I know about using @import for CSS.  Wish JS had the
> same)

s. isaac dealey     954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207826
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to