Is it possible to have popup window and when you submit it will redirect to another popup? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

Is it possible to have popup window and when you submit it will redirect to another popup?

When I add a record the add button will popup the form and then when you click the button inside it, the popup will close and then another popup will open.

20th Dec 2018, 9:43 AM
Ynelle Kyle Novicio
Ynelle Kyle Novicio - avatar
8 Respostas
+ 7
This is an small example but you can add as many alerts or stuffs as you want. Open a Web playground and paste this in js: var a=confirm("Are you 18+ years old?") if (a==true) alert("You can continue to watch this site.") else alert("You are not allowed to watch this site.") I believe you can do that with photos/videos too , but i don't know enought js for a solution.
20th Dec 2018, 11:01 AM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
+ 3
Like an alert or something like that?
20th Dec 2018, 10:56 AM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
+ 3
If yes, there are lessons in javascript how to do that. (With "if/else ... ")
20th Dec 2018, 10:57 AM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
+ 3
Wow! Looks like you are developing some interesting website, Alex šŸ˜‚
20th Dec 2018, 12:02 PM
Gordon
Gordon - avatar
+ 3
šŸ˜‚šŸ˜‚šŸ˜‚
20th Dec 2018, 12:16 PM
šŸ‡ Alex Tușinean šŸ’œ
šŸ‡ Alex Tușinean šŸ’œ - avatar
+ 2
Hi Ynelle Kyle Novicio, To accomplish this with costum modal boxes, that take at the first modal an input and displays the added record at the second modal. here is a snippet, hope it helpsšŸ‘šŸ˜Š https://code.sololearn.com/Wr31n1TW172K/?ref=app
20th Dec 2018, 1:47 PM
šŸŒ“Vincent BergeršŸŒ“
šŸŒ“Vincent BergeršŸŒ“ - avatar
0
It is not just an alert box, modal is used.
7th Jan 2019, 9:45 AM
Ynelle Kyle Novicio
Ynelle Kyle Novicio - avatar
0
It is a big modal for filling up information then if you click submit it will be saved and redirect to the list page. But if you click another, it will be saved too and redirect to itself to add another information.
7th Jan 2019, 9:51 AM
Ynelle Kyle Novicio
Ynelle Kyle Novicio - avatar