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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Seoul, Korea
    Posts
    329
    Thanks
    0
    Thanked 0 Times in 0 Posts

    opening "js" use script

    Code:
    (1) <script type="text/javascript" src="javascript.js"></script>
    
    (2) <script language=JavaScript src="javascript.js"></script>
    
    (3) <script src="javascript.js"></script>
    Is (1) the best way?
    Get my greedy up

  • #2
    Regular Coder
    Join Date
    Oct 2003
    Location
    on a ship
    Posts
    574
    Thanks
    1
    Thanked 6 Times in 5 Posts

    Yes

    yes 1 is the best way.
    2 is the old way and some browsers may not recognize it.
    3 does not specify what kind of script you are using even though you refrence the src to a javascript file.
    I make no attempt at pretending like I'm a professional. I offer help with what knowledge I do have.


  •  

    Posting Permissions

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