Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompt() call in code example does not fire #36172

Closed
cyphersept opened this issue Oct 3, 2024 · 1 comment
Closed

prompt() call in code example does not fire #36172

cyphersept opened this issue Oct 3, 2024 · 1 comment
Labels
closed: duplicate This issue or pull request already exists Content:Learn:JavaScript Learning area JavaScript docs

Comments

@cyphersept
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Strings

What specific section or headline is this issue about?

Concatenation in context

What information was incorrect, unhelpful, or incomplete?

The demo code uses prompt() to demonstrate concatenation. However, when the button is clicked, the prompt call from the code snippet context is ignored, and the displayed message immediately becomes "Hello null, nice to see you!“

Chromium browsers log: "Ignored call to 'prompt()'. The document is sandboxed, and the 'allow-modals' keyword is not set."

What did you expect to see?

A pop-up prompt asking "What is your name?"

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@cyphersept cyphersept added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Oct 3, 2024
@github-actions github-actions bot added the Content:Learn:JavaScript Learning area JavaScript docs label Oct 3, 2024
@Josh-Cena
Copy link
Member

Duplicate of #7566

@Josh-Cena Josh-Cena marked this as a duplicate of #7566 Oct 3, 2024
@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Oct 3, 2024
@Josh-Cena Josh-Cena added closed: duplicate This issue or pull request already exists and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: duplicate This issue or pull request already exists Content:Learn:JavaScript Learning area JavaScript docs
Projects
None yet
Development

No branches or pull requests

2 participants