Starting September 1, 2021, classic Sites will not be viewable by others. Learn how to convert to new Sites today.

/sites/community?hl=en
This content is likely not relevant anymore. Try searching or browse recent questions.
How would i change the background color
0
I have made my own coded login box and i can't change the background this login box redirects to another site i would also like to know how to hide the usernames and passwords from the inspect window 
​the code is here

<html>
<head>
<title>
Login page
</title>
</head>
<body>

<h1 style="font-family:Comic Sans Ms;text-align="center";font-size:25pt;
color:#000000;>
Login
</h1>
<form name="login">
Username<input type="text" name="userid"/>

Password<input type="password " name="pswrd"/>
<input type="button" onclick="check(this.form)" value="Login"/>
<input type="reset" value="Cancel"/>
</form>
<script language="javascript">
function check(form)/*function to check userid & password*/
{
 /*the following code checkes whether the entered userid and password are matching*/
 if(form.userid.value == "nouser" && form.pswrd.value == "nopass"||form.userid.value == "" && form.pswrd.value == "")
  {
    window.open('https://sites.google.com/mypacyber.org/membersonly/home')/*opens the target page while Id & password matches*/
  }
 else
 {
    window.open('https://sites.google.com/mypacyber.org/art-site-new-update-april-2019/password-incorrect')
  }
}
</script>
</body>
</html>
Latest Update Latest Updates (0)
Relevant Answer Relevant Answers (0)
All Replies (5)
Relevant Answer
You cannot hide the usernames and passwords from the inspect window: this is not how to make a secure site.

If you want a site that's secure and only allows certain people in then Google Sites offers this - see:
marked this as an answer
Relevant Answer
feel free to use the code to help
marked this as an answer
Relevant Answer
If you want to make sure you always see the sign in then you can make a public site with a button or link to the private site and force them via the sign in screen using this URL

https://accounts.google.com/AccountChooser?continue=[yourSiteURL]

So in your instance (since you provided your URL) use this URL:


This will make people sign in or if already signed in choose the right account o access the site with.
marked this as an answer
Relevant Answer
i just want to know about background color. i didn't start this site and i am doing this blindly.Anyone know where or how to change that bg?
marked this as an answer
Relevant Answer
I would suggest inline CSS, thus:
<form name="login" style="background-color:lightblue;">

In place of 'lightblue', you can use any of the values specified at https://www.w3.org/TR/css-color-3/#colorunits

Note that I've put the style= attribute on your <form> tag, so only that part of the page will be affected.  If you instead attach it to the <body> tag, the entire section will use the specified color.

Exhaustive information about CSS can be found at https://www.w3.org/Style/CSS/current-work
marked this as an answer
This question is locked and replying has been disabled.
Discard post? You will lose what you have written so far.
Write a reply
10 characters required
Failed to attach file, click here to try again.
Discard post?
You will lose what you have written so far.
Personal information found

We found the following personal information in your message:

This information will be visible to anyone who visits or subscribes to notifications for this post. Are you sure you want to continue?

A problem occurred. Please try again.
Create Reply
Edit Reply
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.
Report abuse
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
Report post
What type of post are you reporting?
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
This reply is no longer available.
/sites/threads
//accounts.google.com/ServiceLogin
You'll receive email notifications for new posts at
Unable to delete question.
Unable to update vote.
Unable to update subscription.
You have been unsubscribed
Deleted
Unable to delete reply.
Removed from Answers
Removed from Updates
Marked as Recommended Answer
Marked as Update
Removed recommendation
Undo
Unable to update reply.
Unable to update vote.
Thank you. Your response was recorded.
Unable to undo vote.
Thank you. This reply will now display in the answers section.
Link copied
Locked
Unlocked
Unable to lock
Unable to unlock
Pinned
Unpinned
Unable to pin
Unable to unpin
Marked
Unmarked
Unable to mark
Reported as off topic
Known Issue
Fixed
Marked Fixed
Unmarked Fixed
Unable to mark fixed
Unable to unmark fixed
/profile/0
false
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
70
false