All Questions
Tagged with alert javascript
2,008 questions
1
vote
1
answer
68
views
How to change alert language in React Native
I'm working on a React Native project where I'm implementing language switching. However, I'm having trouble figuring out how to change the language used in the alert messages.
I'll share the relevant ...
0
votes
0
answers
28
views
Overriding window.alert() doesn't seem to work [duplicate]
I have a recalcitrant alert() box I'm trying to troubleshoot in Chrome. I tried overriding alert(), confirm() and prompt() to trigger a debugger; statement, but no matter what I do, I cannot hit that ...
1
vote
2
answers
62
views
How do you try to reload the alert after it has been viewed?
When this code runs, this alert is not displayed when the page reloads. I want to make the page reload after the alert appears.
// sweetalert framework
swal({
title: "Good job!",
...
-1
votes
2
answers
68
views
Alert Box for webpage. Javascript/HTML
I'm working on an assignment for school and it's asking me to create an alert for two email addresses being different. What I have works as far as giving an alert when the two emails are different, ...
0
votes
0
answers
21
views
How to display beforeunload as alert box instead of a warning to leave page [duplicate]
I am trying to stop users from moving onto next page unless they click on a checkbox. I have used beforeunload to trigger the "do you want to leave the site". However, I would rather get rid ...
0
votes
0
answers
27
views
How could you show a bootstrap alert on mouseover of a choices field in a django form?
I have a questionnaire based on django form and I need to show a note if a user hovers or clicks on a question before it submits. The django form is loaded in from a custom question and question ...
-1
votes
1
answer
115
views
How to create multiple javascripts have the same notification
Here are two JavaScripts. There is also a notification script.
I want to combine two javascripts in one and have both javascripts show the same notification.
This is the two different javascripts with ...
-3
votes
2
answers
116
views
JS Alert on pageload
I want to create an alert / message that shows me the users geodata after the page has been loaded.
Here ist the script for the geolocation that I want to be
displayed in the alert.
<script>
...
0
votes
0
answers
210
views
cash register project freeCodeCamp
In the following code, the highlighted part does not get cleared. Although I have checked every element and type of element.Please suggest correction
function changeReturn() {
let price = 1.87;
let ...
0
votes
1
answer
108
views
customize message in a bootstrap NOTIFICATION javascript alert
On many websites, they show a new visitor landing on the page displayed in an alert Notification that pops up on the bottom right or left
The code below is working just fine, except I have not been ...
-4
votes
1
answer
99
views
isNaN alert is responding every time. Even when the value is number
In my code I have an if statement, using an isNaN(). It is checking the input on a number field. If the input isNaN() (is not a number) it should throw and alert() Right now it's throwing that alert ...
-1
votes
1
answer
66
views
Is there a way to show warning for multiple required inputs that are left empty simultaneously?
In JavaScript (used in React), while using inputs, I used the "required" prop in some inputs in a form. However, when multiple fields are left empty, the warning only shows up in the first ...
0
votes
0
answers
79
views
React Native Alert.alert refreshing app on Android
When I use
Alert.alert(
'Incomplete',
'Please make sure all required fields are filled before signing.'
);
in my React Native app, the Android app is unexpectedly refreshing.
Even though the ...
2
votes
2
answers
117
views
Alert box not displaying Sum with Html Input Fields
New to website programming. I'm trying to make a basic sum equation with 2 input fields taken from client-side.
<!DOCTYPE html>
<html>
<head>
</head>
<body&...
1
vote
1
answer
32
views
How to get alert to display properly based on number of inputs?
i'm in a very beginner javascript course and we were tasked with making a simple loop "program". I settled on asking users for names of colors and based on how many answers they come up with,...