0

How can i make a login page where when i press login button will move to next page or open a page not external but internal one

23rd Apr 2018, 12:52 PM
umair
umair - avatar
21 Antworten
+ 1
First i suggest you to learn more about HTML, CSS and JS.... Anyway for button problem, simply you must set click event listener on button... In my code "showPage" function is used for show either pages (i have edited my code also) P.S. dont post most sequential messages... try to write a message to time Here its my code that contains useful resources links: https://code.sololearn.com/WaVusr8J1KvK/?ref=app EDITED
23rd Apr 2018, 3:32 PM
KrOW
KrOW - avatar
+ 2
okie
23rd Apr 2018, 3:23 PM
umair
umair - avatar
+ 1
You can "simulate" this with js and manipaling DOM
23rd Apr 2018, 2:28 PM
KrOW
KrOW - avatar
+ 1
nice so i can use it as button right.thanks buddy my problem is solved now
23rd Apr 2018, 2:54 PM
umair
umair - avatar
+ 1
Note that i have used a very simple example but its possible do it more complex and more functionals but at core that its 👍👍👍
23rd Apr 2018, 2:56 PM
KrOW
KrOW - avatar
+ 1
you got any idea that how i can use it for button
23rd Apr 2018, 3:08 PM
umair
umair - avatar
+ 1
👍👍👍👍 P.S. Remember that if you set as public code not your you must set credits to original creator (you must tell that your code is copied from code X of Y and if creator dont wnt allow you, moderator can privatize or delete your code)....
23rd Apr 2018, 3:22 PM
KrOW
KrOW - avatar
0
You need to host a local web server. More info: https://gist.github.com/jgravois/5e73b56fa7756fd00b89
23rd Apr 2018, 2:10 PM
Bebida Roja
Bebida Roja - avatar
0
cant i do it without that?coz it will make the user go outside sololearn
23rd Apr 2018, 2:11 PM
umair
umair - avatar
0
If you want different html files, then yes. If not, you could make different containers for each "page".
23rd Apr 2018, 2:12 PM
Bebida Roja
Bebida Roja - avatar
0
how can i make different containers and will it prevent the user from going outside sololearn
23rd Apr 2018, 2:17 PM
umair
umair - avatar
0
No, if you do DOM manipulation.
23rd Apr 2018, 2:23 PM
Bebida Roja
Bebida Roja - avatar
0
Are there any examples in sololearn?
23rd Apr 2018, 2:34 PM
umair
umair - avatar
0
done
23rd Apr 2018, 3:24 PM
umair
umair - avatar
0
can you tell me how i can use the code you shared in thr form of button
23rd Apr 2018, 3:24 PM
umair
umair - avatar
0
thanks kr0w you helped me a lot i will be adding your name for the credits part.https://code.sololearn.com/WJJv3gw01LxD/?ref=app
23rd Apr 2018, 5:27 PM
umair
umair - avatar
0
You dont have need of insert my name but original code its your? Seem that no to me because before, your code, has a name to top of html (now i dont remember) and futhermore the modal is filled with data of someone that its not you
23rd Apr 2018, 5:30 PM
KrOW
KrOW - avatar
0
the data is added by me coz i am developing it for someone
23rd Apr 2018, 5:32 PM
umair
umair - avatar