DOM - Inserting <script> between <head>

This is a discussion on "DOM - Inserting <script> between <head>" within the JavaScript Forum section. This forum, and the thread "DOM - Inserting <script> between <head> are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 13th, 2008, 00:58
New Member
Join Date: Mar 2008
Location: Brooklyn, New York
Age: 20
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
DOM - Inserting <script> between <head>

If I were to use DOM to create and insert an external script in the head of an HTML document, will that page recognise functions from the external script if they are called to?
Reply With Quote

  #2 (permalink)  
Old Mar 13th, 2008, 21:05
CloudedVision's Avatar
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 942
Blog Entries: 8
Thanks: 2
Thanked 22 Times in 22 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Re: DOM - Inserting <script> between <head>

I don't know about the head, but you could use document.write to write the HTML to call a script. I've used that before, works like a charm.
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
Reply With Quote
  #3 (permalink)  
Old Mar 13th, 2008, 21:52
New Member
Join Date: Mar 2008
Location: Brooklyn, New York
Age: 20
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: DOM - Inserting <script> between <head>

Yes, that would work. I might have to use that method. Thanks, CloudedVision.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
inserting time phiero21 JavaScript Forum 1 May 2nd, 2008 20:09
Need help in inserting audio using <object> shevorne Flash & Multimedia Forum 8 Sep 29th, 2007 13:39
Inserting Session into the database franknu PHP Forum 11 Jun 17th, 2007 00:16
Inserting an array into a database. Gup Classic ASP 2 Aug 10th, 2006 08:49
inserting data to mysql db Tim356 PHP Forum 1 May 6th, 2005 04:20


All times are GMT. The time now is 10:46.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43