Prompt doesn't let the page load

Prompt doesn't let the page load

Hi Everyone,

I have designed a webpage that uses a prompt.  I am using the prompt as a form of password to retrieve information about the webpage. 

I am having two issues: 

1st one is that the prompt on the top says: The page at: 192.168.X.XX says:  and then the actual message

that I wrote: Enter your password:   Is there a way to change the title of the prompt?


2nd Even though I placed the prompt script inside document.ready() function, it will not let the webpage load completely?

<script>
$(document).ready(function() {

  // executes when HTML-Document is loaded and DOM is ready
 $.ajax({
        type: "POST",
        url: "index.html",
        data: { bla, bla, bla
        }
    });
 
  // Prompt for the password
 var password = prompt("Enter your password","****");
 
});
</script>











Am I doing things correctly?  Is there already a password screen that is already available and I am doing things the hard way or is prompt the right thing to use in this scenario?  Is using document.ready() the way to go in my situation?


Thank you,

Neil P.