0

Is It Possible To Make A New Page When The User Tap The "Submit" Button?, If Possible Pls Tell Me How. Thanks🙏🏻

https://sololearn.com/compiler-playground/WM7FnK80ETcv/?ref=app

27th Oct 2024, 10:49 PM
Max Verstappen
Max Verstappen - avatar
5 Respostas
+ 4
In the SoloLearn Code Bits area, you can have one HTML, one CSS, and one JavaScript file. So in that environment, you cannot technically have a different page. What you can do, however, is to put some content in a DIV container and replace the contents of that DIV container by using JavaScript to edit that DIV container. This technique is called an SPA (Single Page App). In your HTML, setup your HEAD, FOOT, MENU, and CONTENT into various containers. The JavaScript can edit those containers as needed. Technically you could build anything you want. A lot of websites actually work this way. This is a big part of how REACT and Angular pages work. The contents of the containers are updated using JavaScript. I wrote a small demo of this technique. In my case, I just updated one section. But technically you could update multiple areas such as menus, page content, images, etc. https://www.sololearn.com/en/compiler-playground/Ww74ViL7mMTl
27th Oct 2024, 11:12 PM
Jerry Hobby
Jerry Hobby - avatar
+ 1
not in Sololearn. A refresh would just clear the html display. perhaps opening them in iframes? not sure ...
27th Oct 2024, 11:13 PM
Bob_Li
Bob_Li - avatar
+ 1
I hope you are not planning to make a phishing site. You should be aware that it's not just a prank. It's an illegal activity. https://sololearn.com/compiler-playground/WOtJ40srxKzz/?ref=app
28th Oct 2024, 1:40 AM
Bob_Li
Bob_Li - avatar
+ 1
You should understand JavaScript
29th Oct 2024, 5:05 PM
Arash Amorzesh
Arash Amorzesh - avatar
0
It ia possible, if you understand javascript you may use on-mouse events that uses attributes like onsubmit,
29th Oct 2024, 8:17 AM
Denis D
Denis D - avatar