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
over 1 year 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.

2410 points
5671826195e378c47d000782_659060817
Submitted by
stetim94
over 1 year ago

2 Comments

5671826195e378c47d000782_659060817 stetim94 over 1 year ago

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