Hi so What I need to do is eventually have regStart and regPage alternate visibility based on a click event, I'm not too worried about writing the JavaScript function but I simply can not get my regPage to hide in the first place. Here's my code. Simple answers please I'm new to JS.
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml">`enter code here` <head> <title>SuperSite</title> <script language="JavaScript" type="text/javascript" > function setVisibility() { document.getElementByID('regStart').style.visibility = 'visibile'; document.getElementByID('regPage').style.visibility = 'hidden'; }; </script> </head> <body onload=setVisibility();> <div> <h1>SuperSite</h1> <hr /> <p>Already a registered SuperSite user? Sign in with one of the following services.</p> <div class="icons"> <img alt="facebook" src="/images/js project/FacebookDepressed.ico" /> <img alt="google" src="/images/js project/GoogleDepressed.ico" /> <img alt="Windows Live" src="/images/js project/WinLiveDepressed.ico" /> <img alt="Yahoo!" src="/images/js project/YahooDepressed.ico" /> </div> <ul> <li>sign in with your SuperSite username and password</li> <li>add another authentication service from the list above</li> <li>change your SuperSite password</li> </ul> <div id="regStart"> <p>If you haven't already registered with SuperSite</p> <a id="regNow" href="">Register Now</a> </div> <div id="regPage"> <p>Register to use SuperSite services with the following form:</p> <p>UserName:</p> <input id="UserName" type="text" /> <p>Password:</p> <input id="Password1" type="password" /> <p>Verify Password:</p> <input id="PasswordVerify" type="password" /> </div> </div> </body> </html>