#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2005
    Posts
    52
    Rep Power
    10

    View Javascripts


    If I include a javascript file as

    <script language="JavaScript" type="text/javascript" src="js/test.js"></script>

    in a jsp page.

    When the page is loaded, the users can use the View Page Source function to see the above line of code.

    My question: Can the users see the content of the test.js file as indicated above? If so how could they do it?


    Thanks
    Last edited by otnj2ee; October 29th, 2012 at 09:43 PM.
  2. #2
  3. No Profile Picture
    Super Moderator
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jul 2003
    Posts
    4,009
    Rep Power
    2791
    By browsing to www.yourwebsite.com/js/test.js.

    Javascript is a client-side language, so when a webpage with Javascript is viewed, all of the content is downloaded to that user's computer.
    [PHP] | [Perl] | [Python] | [Java] != [JavaScript] | [XML] | [C] | [C++] | [LUA] | [MySQL] | [FirebirdSQL] | [PostgreSQL] | [HTML] | [XHTML] | [CSS]

    W3Fools - A W3Schools Intervention.

IMN logo majestic logo threadwatch logo seochat tools logo