Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2005
    Posts
    315
    Thanks
    18
    Thanked 2 Times in 2 Posts

    js in another folder . . .

    I have an html page, and I want to use a js from another folder. Can I call a js like this?
    <script
    language="JavaScript"
    src="../blog/magicimage.js"
    type="text/javascript">

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    26,014
    Thanks
    79
    Thanked 4,435 Times in 4,400 Posts
    Why didn't you try it??? Would have taken less time than asking here and waiting who knows how long for an answer. Yes.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #3
    Regular Coder
    Join Date
    Apr 2005
    Posts
    315
    Thanks
    18
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by Old Pedant View Post
    Why didn't you try it??? Would have taken less time than asking here and waiting who knows how long for an answer. Yes.
    That's what I get every time I post here . . .


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •