+ 3
How do you program pop ups with JavaScript only. (The cool ones that are on the page)
Hey can someone help me with how to program popups with JS only. On the website body. Thank you. Note a fancy popup not the alert(“some text”) https://code.sololearn.com/W8rt58hF58I6/?ref=app also can you check this out thx
9 Antworten
+ 3
An example would be great. Why the emphasis on JS only though? Could you possibly be talking about a modal? I'll post my code here as an example. Clicking (or tapping) on the detail buttons and clicking the search icon will trigger modals, which are basically types of pop-ups in a way.
https://code.sololearn.com/Wh117ebi576o/?ref=app
+ 3
I believe you are asking about making your own pop-up, as opposed to the built in alert pop-up. In this case, you'll probably want to think about how you want to trigger it, if you want to create the html using js or just change the hidden property with js.
So what do you mean by JS only? Create, append, and stylize all in JS?
+ 2
alert(“Hi”) makes a popup that says hi.
+ 2
low like one of those cool popups that have background colers
+ 1
oh ya maybe he wants to design a popup, that was a big problem for me in creating my website(glimpseofspace)
+ 1
Surgarypeaches68 glad I could help!
+ 1
checkout sweet alerts its helps create fancy popus with javascript
0
It comes very early in the tutorial you are studying.
Maybe you overread it?
0
yeah ZW that’s what i meant thanks. reason i wanted just js cause i was making a bookmark and you can put js only in it