This forum is now read-only. Please use our new forums at discuss.codecademy.com.

HTML Basics Forum

View Course » View Exercise

1479 points
571663c65917eca0160001eb_552972165
Submitted by
ajaxSolver40804
almost 2 years ago

"Confirm" Pop-up: One time

How do you make it so that when you add the code confirm("Example text"); to your codebit, you can make it pop up one time only? (No, clicking the thing that says prevent this page from creating additional dialogs does not count.) Whenever I try to edit the confirm code, it pops up every time with its new text and I sure wouldn't like to look at my codebit while wading through all those pop-ups....


0 votes

permalink

Can i see the codebit? I can always temporary disable pop-ups.

2822 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
almost 2 years ago

2 Comments

593d545c83696644420003b7_64554016 stetim94 almost 2 years ago

i will look into it, the easiest solution would be to use jquery, and then use document.ready