0

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?

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by <M/>
0

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.

0

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...?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.