External JS

luish

OSNN Senior Addict
#1
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 !
 

j79zlr

Glaanies script monkey
Political User
#2
<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 ;)
 

luish

OSNN Senior Addict
#3
Originally posted by j79zlr
<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 ;)
Thank you ! !
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,971
Messages
673,300
Members
89,016
Latest member
Poseeut