I am trying to style a log in menu that is created by this snippet i have here (generated by javascript):

<script>
var password;
var correctpassword = "DaNiWeB";
password = prompt ('Enter the Correct Password to view this page:','');
if (password==correctpassword)
    alert('Thank you for properly entering the password, you may now access this page');
else
{
    window.location="http://www.daniweb.com"
}
</script>

How do i style this?

What exactly are you trying to style? You have a prompt and alert.

If you mean style these, I am pretty sure that you can't apply styling since these are built in to the browser.

Well... When you put that way... I want to have it on the page then, now that I know you can't style it. How would I take that snippet and place on a web page as if it displays like the Wordpress log in.... Rather than having a non-styled pop up...?

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.