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

window.prompt javascript function not working on Firefox 132.0.1 (64-bit) #36781

Closed
SergioGiacomoSammartano opened this issue Nov 13, 2024 · 1 comment
Labels
closed: duplicate This issue or pull request already exists

Comments

@SergioGiacomoSammartano

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?

In the tutorial, an example makes use of the window.prompt() function (at least, in theory) to collect string data (a name) from the user, but no pop-up window for the prompt is generated and therefore it is impossible to load the data into the const name variable, whose value is then displayed as "null".

What did you expect to see?

I expected to see a prompt window that would allow me to input a string, but no window is shown. The console shows no errors, no runtime exceptions during the execution of the function when pushing the "Press me" button.
I suspected this was due to security restrictions implemented by the browser, like blocking notifications and not allowing pop-up windows, but I tried many times to allow these security settings for the developer.mozilla.org webpage, most times closing and reopening the browser, but I couldn't get the prompt to show up.

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

No response

Do you have anything more you want to share?

I have experienced this very same problem on two different laptops, one running Windows 11 and the other running Linux Mint 22 Wilma. On both machines I have tried a couple of times to erase the website's cookies and cache , but the problem was not solved.
On the Windows laptop I browsed the page with Chrome as well, but I experienced the same problem.
When trying to run a custom prompt command directly from the console (web developer tools), the prompt window shows up with the text I pass as an argument.

MDN metadata

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

Duplicate of mdn/yari#12387

@Josh-Cena Josh-Cena closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 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. Content:Learn:JavaScript Learning area JavaScript docs labels Nov 13, 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
Projects
None yet
Development

No branches or pull requests

2 participants