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
5 Answers
+ 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
+ 1
not in Sololearn. A refresh would just clear the html display.
perhaps opening them in iframes? not sure ...
+ 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
+ 1
You should understand JavaScript
0
It ia possible, if you understand javascript you may use on-mouse events that uses attributes like onsubmit,