Javascript includes

Discussion in 'JavaScript' started by blackbug, Sep 22, 2005.

  1. #1
    Hi Guys,

    Is there any way to include javascript from an external file, without, using the script tag? i.e. internally from the javascript to include a file on the fly?

    Any ideas?

    Cheers

    Chris
     
    blackbug, Sep 22, 2005 IP
  2. JeremyMiller

    JeremyMiller Guest

    Messages:
    13
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The only way I could think of would be to have an iframe on the page, change the source, and then try to read it; however, that's considerably more difficult than just including the script.
     
    JeremyMiller, Sep 30, 2005 IP
    blackbug likes this.
  3. blackbug

    blackbug Peon

    Messages:
    1,002
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You know, I can't even remember what I was trying to do when I asked the question... :)

    Thanks anyway! :)
     
    blackbug, Oct 1, 2005 IP