Hi,
Newbie Coder wrote:
Hello all
I have 3 functions in a javacrip file (MyScript.js), which is added to an
ASP.NET 2.0 project
To include an external script file in your ASPX page, use
<script type="text/javascript" src="myscript.js"></script>
Then you can use your functions as if they were included in the page itself.
1) no right-click
2) no select text (copy...)
3) History.Back()'
Are you aware, though, that any effort to prevent right click or to
prevent selecting text, or to control the user's navigation are doomed
to fail and to make you look like a JavaScript fool? :-)
You cannot prevent the user to look at your source code, or to copy text
or images. It's simply impossible. What you put on the web is for
everyone to see, and to use.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering:
http://www.galasoft-LB.ch
PhotoAlbum:
http://www.galasoft-LB.ch/pictures
Support children in Calcutta:
http://www.calcutta-espoir.ch