Hello! I'm just learning JavaScript and I was wondering if clients can view external JavaScript files? I would like to (potentially) use JavaScript to validate passwords to log into my site. Would this work/ is there a better way?
dmanw100
36
Posting Whiz in Training
Recommended Answers
Jump to Postyes, the javascript filename is referenced in the html in clear
<script language="javascript" type="text/javascript" src="http://www.-mysite-.com/script.js"></script>
anyone typing that src into a browser can read the javascript
validation is done securely on the server. php or Ajax -javascript+php- are possible approaches.
All 3 Replies
almostbob
866
Retired: passive income ROCKS
dmanw100
36
Posting Whiz in Training
almostbob
866
Retired: passive income ROCKS
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.