Forum Moderators: open
This is the script:
function
aWrite()
{
document.write('<p>Display this text</p>')
}
I want to call this script from an HTML page but cannot work out the path. The drive name is i: so I would assume this would work:
<script type="text/javascript" src="i://inetpub/js/awrite.js"></script>
Can anyone tell me what I'm doing wrong?
[webmasterworld.com...]
There isn't any good way that I know of to keep javascript private. If you really want/need to protect your application's logic, you're likely going to need to go with a server-side language.
-b