0

Pagination with java script?

Hello! I want to create a sign page, but before this I have a landing page with sing In and sign up buttons. So I just want to code it with java script, when click on sign in button ,it show sign in page and hide landing page, how to achive this? Please help!

11th Oct 2018, 6:32 AM
Parminder Singh
Parminder Singh - avatar
2 Answers
0
You can modify css display attribute for make this. Example: // simple HTML <div id='landing'> <button onclick='onSignInRequest()'>Sign In<button> </div> <div id='sign-in'> .... </div> // simple CSS #landing{} #sign-in{ display:none; } // simple JS function onSignInRequest(){ document.getElementById('landing').style.display= 'none'; document.getElementById('sign-in').style.display= 'block'; } Obliviouslly you have to handle like return to original state (landing visible, sign-in gone)
11th Oct 2018, 8:14 AM
KrOW
KrOW - avatar
+ 1
thanks Kr0W
12th Oct 2018, 8:00 AM
Parminder Singh
Parminder Singh - avatar