External JS

Discussion in 'Web Design & Coding' started by luish, Oct 23, 2003.

  1. luish

    luish OSNN Senior Addict

    Messages:
    429
    Location:
    Israel
    Hello!

    I am back working on HTML. While working from my site, a friend gave me a script, a real nice menu....
    I dont want to include all the script on the page but to link it by a *.js file...
    How am i supposed to do this ?

    Also, I wanna disable the right click on the page and the viewsource options.. lotta sites have that, how can i do that ?

    Tnx !
     
  2. j79zlr

    j79zlr Glaanies script monkey Political User

    Messages:
    2,725
    Location:
    Chicago
    <script type="text/javascript" src="path to scripts/scriptname.js">
    </script>

    Put the above into the head section or where you want the script to execute.

    The right click disable is a bad script, I hate it, and is easily circumvented. View > Source ;)
     
  3. luish

    luish OSNN Senior Addict

    Messages:
    429
    Location:
    Israel
    Thank you ! !