Most voted "alert" questions
None
Learn more…52 questions
Sort by count of
-
6
votes1
answer243
viewsWhy does 'window.Alert()' work in tabbed navigation and 'window.Focus()' does not?
I have the following method: (function(){ window.addEventListener('blur', openChat); window.addEventListener('pagehide', openChat); })(); function openChat(){ setTimeout(function(){ alert('Há uma…
-
4
votes4
answers3696
viewsMultiple Bootstrap Alerts
I’m trying to create a standard response using the alerts do bootstrap, my goal with a simple: $(".alert").addClass('alert-success').text('Configurações salvas com sucesso.'); I choose the class…
-
4
votes5
answers815
viewsCheck if URL has string
hello, I am making a code using Typescript and I need to do a check to know which page the user is on, I am doing this check as follows: const url = window.location.href; if (url.indexOf("/Menu")) {…
-
3
votes2
answers28732
viewsPersonalize an Alert
I have a code that by clicking the button it opens a new tab. Depending on the condition of the report it shows a Alert that by clicking on OK it closes the tab that was opened. Is there any way I…
-
3
votes1
answer452
viewsHow to call an alert, a notification for user in Android application?
When the user clicks on an option he can receive an Alert saying, you selected certain command, certain option, how to make an alert of this type in an Android application?
-
2
votes2
answers208
viewsEmail Alert - TFS Visual Studio
I would like to know if there is any possibility of setting up TFS alerts according to the branch that has been changed. I do not have lock objects with me, but I need to follow check in certain…
-
2
votes4
answers3166
viewsDisplay error message when typing phone
I have a form and I need this field <label class="labVal210Esq">Telefone: <input type="text" class="val120Dir" name="TxtTelefone" /> </label> In case it is the phone, it displays…
-
2
votes1
answer3536
viewsAlert auto close using Bootstrap
Using Bootstrap and created a button save in which it performs a specific function selector(). This function will be executed only after saving in the bank, then it will show an alert that will…
-
2
votes1
answer614
viewsHow do I return the total sum of the repeated words within all div?
To illustrate the degree of difficulty, I place 3 div and within them identical words, purposeful to add their duplication. <div> <div> <div> Diego Ademir Diego Maicon Diego Maicon…
-
2
votes1
answer400
viewsHow to do by clicking the Alert ok, just then go to another page?
Good guys, I’m learning Ionic now in college, and would like to know if it is possible, in an Alert, to make it only after the user click 'ok', in my case 'change', it go to a certain page? Thank…
-
2
votes3
answers5980
viewsCustomizing the Alert
I need some help regarding alert() of js, in which I am returning some information-only values to the user. Today I’m returning only one alert(), but I did some research and found some alternatives…
-
2
votes3
answers998
viewsDisplaying successful Alert() on the same page. PHP, Html
I wanted to send the message of success or error after registering products from my site on the same page, without loading a new blank with the message, I saw similar questions, some using ajax that…
-
2
votes1
answer84
viewsAuto Close Alert after consultation in the Database
I am trying to close an alert automatically after the user performs registration/login. The alert is working in a good, as soon as the query in the Database is held the alert appears on the screen.…
-
1
votes0
answers127
viewsUse custom Alert in javascript
I’m trying to use something other than the standard javascript alert and apparently changing the syntax doesn’t work. For example, this code works. $mysqlInsert = mysqli_query($conexao,$sqlInsert);…
-
1
votes1
answer41
viewsHow to pass a "title" on an Int-like "Uialertcontroller" with Swift?
Good afternoon, you guys. I’m calling an Alert in my code where I need its "title" to be the return id of a JSON, my json object has id and status, the id is of type Int and the status is of type…
-
1
votes2
answers988
viewsMessage when user is exiting application
I know I can use the AlertDialog for this, but without creating button, only when the user is pressing the back to exit have appear an alert? Like, when it comes out (it involves the Android system…
-
1
votes1
answer950
viewsRun function after loading page with Angularjs
I am trying to execute a function that gives an alert on the screen after the however is loaded, however, I am not having success with ng-init because using ng-init it gives the alert and the screen…
-
1
votes1
answer64
viewsTrying to make Alert on all href of the page but only one is displayed
I’m doing some tests and I came across this very boring mistake. It’s easy to explain: I want Jquery to give the alert in all the <a> of the page, but it only alert once and nothing more.…
-
1
votes1
answer52
viewsAssign HTML code to a Jquery Alert
I am using this Alert but wanted to insert a text break window.alert("Não existe produto cadastrado no sistema! Para continuar devemos cadastrar pelo menos um produto"); wanted for a line break…
-
1
votes3
answers831
viewsCustomizing the Javascript confirm
Can you personalize the confirm() via CSS, or how to implement some modal in it? I tried to use Bootstrap but the JS code stops working: $(function() { $(".delete").click(function(){ var element =…
-
1
votes1
answer2059
viewsDisplay alert when loading page
I’m using Asp.net-mvc and as far as I know the Onload event would work if I put in body, which is in ~Layout, but I need this alert to be displayed in a single page, because if I put in body will…
-
1
votes1
answer293
viewsSend an ALERT to a UNIQUE field in Mysql
I have a field in the BD set as Unique, to avoid duplicate registration. Works perfectly. I wonder if there is a way to personalize this message, with an Alert, for example. My code: <?php…
-
1
votes0
answers61
viewsAlert Scrollbar - Ionic
Good Afternoon I would like to know how to get the scrollbar from the Alert presentConfirm() { Let Alert = this.alertCtrl.create({ title: 'Leaving the App', message: 'Are you sure you want to quit?…
-
1
votes2
answers259
viewsIs it possible to customize an Alert?
Between an if and Else I have a call from an Alert to return a reply to the user, between both the layout of Alert itself is not very according to the layout of the site, I would like to know how I…
-
1
votes1
answer280
viewsHow do I use the setTimeout() method to delay the appearance of an Alert in Javascript?
Good afternoon, at this time I am developing a javascript, html and css project. It is the game of the Rooster, the game works only that I need the Alert of victory or draw only appear after the X…
-
1
votes1
answer102
viewsIs there a way to customize Function Alert equal to the input required?
My question is somewhat specific, but I would like to know if there is a possibility to create a message from alert with the input pattern required? The situation is as follows: I have a linked div…
-
1
votes1
answer103
viewsCreate menu inside an Alert() with repeat loop
I am trying to create a menu of options for the user to choose one of the 20 previous exercises to open in the browser. Only instead of creating it manually, I use the repeating structure for with…
-
0
votes2
answers1678
viewsPHP and Javascript - Show alert without updating page
I have on my page a button that sends e-mail with some information. However, if two of the fields are empty, the browser gives an alert warning (indicated in the code below in TODO). <?php…
-
0
votes2
answers429
viewsReturn which Alert Dialog button was clicked
I have a void method that creates a custom dialog that shows a listview Multichoice, I would like to make this method return a Boolean when positivebutton or negativebutton is clicked to do another…
-
0
votes2
answers1266
viewsLogin within javascript Alert
You can login with unique user and password within an Alert? I wish it was a code like this, I just don’t know how to put 2 prompt in msm popup…
-
0
votes1
answer103
viewsHow to confirm if user exists with those "green ticks"
They say it’s with javascript, but I searched the net and found nothing related... Example of how I want it to stay: Currently I do with Alerts, but I would like validation to leave a green light as…
-
0
votes1
answer1206
viewsCode for tab / window / browser tab flash
Good afternoon, as I am not good at javascript, so I need the masters here to help me. I am building a browser system for a company. In this system will happen several events, and as I wrote in the…
-
0
votes1
answer595
views$_SESSION["Danger/Success"] in php to display alerts
logicaUsuario.php <?php session_start(); function usuarioEstaLogado(){ return isset($_SESSION["usuario_logado"]); }; function verificaUsuario(){ if (!usuarioEstaLogado()){ $_SESSION["danger"] =…
-
0
votes1
answer115
viewsAlert or Popup javascript after form validation in Sharepoint 2013
This is my first participation, please excuse the beginner mistakes. Friends, I need to make an Alert or a javascript popup or Jquery to use in Sharepoint form. I need it to give me a message if it…
-
0
votes1
answer924
viewsHow to make an alert in the browser, using Node.js
I am beginner in Node.js, I know that the main function of Node is not this, but I want to learn a little more about such an event, another doubt I also have is whether I can use common javascript…
-
0
votes1
answer431
viewsDisplay alerts in an Application Console c#
I warn you that maybe my doubt is too primary, but come on... I’m doing a c#console project, but I’m having trouble displaying error alerts. What I wanted to do was leave a separate part of the…
-
0
votes0
answers1999
viewshow to click the "ok" button on an Internet Explorer alert using VBA?
Hello, I have a VBA code that accesses a web page and deletes the entries. The moment I click the button "delete item" opens an alert on the screen with two buttons ("okay" and "Cancel") and…
-
0
votes0
answers65
viewsCall Alert When I Get a Session Value
Hello! I am trying to call a javascript Alert as soon as I get some value in a Session. I am using C# with ASP.NET Follow my code with the attempt to show Alert, but to no avail:…
-
0
votes1
answer104
viewsAlert appearing at the wrong time
I made a php code where the first part of it is to go through the login.php page. and for this I put an Alert to warn when the login and password are incorrect. for that I put an If and an Lse and I…
-
0
votes1
answer41
viewsHow can I hide or show a div from one page to the other?
I have a file where people write in the camps: <div class="banner-bot" > <div class="container"> <h2>Registar</h2> <p>Preenche os dados para criar a tua conta. Quando…
-
0
votes1
answer478
viewsDisplay result of a Javascript function in a modal
Good morning! I have a function that scans a JSON file for information compatible with the search that will be performed. Work normally. But what I want is, to display the result of this search in a…
-
0
votes1
answer46
viewsHow to edit the title of ALL Alerts in the Ionic app, and not just one?
By following the Ionic documentation, I can edit the title of an Alert using the one taught in the following link:insert link description here However, when Alert is fired from within an iframe, it…
-
0
votes1
answer143
viewsDisplay an alert box when loading the page
I am working with Angular and I need to display an alert box when loading the html of a component, but I can only do this from a button click, but I need the alert to open as soon as the page is…
-
0
votes2
answers67
viewsHow to pause Thread while Alert runs within Platform.runLater - Javafx Java
I need to execute a method within a Thread that contains Alert and Dialog. As you already know Javafx has the limitation of not being able to show Alert or Dialog inside a Thread, so I put them…
-
0
votes0
answers22
viewsHow to validate and call a message only after clicking a button
I created a Javascript memory game. Everything is working almost perfectly, what I wanted was that the message of "CORRECT COMBINATION" and "INCORRECT COMBINATION", appeared only after I started the…
-
0
votes0
answers13
viewsCalling a JS file function on the front end when receiving a response from the server
I am using bootstrap Alert to send a message to the user, however, I would like to change the way messages are presented to the user, actually I do this way: <!--Mensagem de Sucesso--> <%…
-
-1
votes1
answer233
viewsAlert on html site
I’m trying to set up an alert on a website. For example, a screen appears within the site itself, where the person can click to no longer appear this message. I’ve searched enough on the Internet,…
-
-1
votes1
answer57
viewsMake Alert appear only when the page is already loaded
I have a form that sends the data to the same page where the user typed them by the POST method and I make the URL to be created a variable by GET to trigger an Alert by JS that I have in my code,…
-
-1
votes1
answer61
viewsAlert user about JSON response with empty return []
I am already more than 15 hours straight tried a simple solution but for me it is very difficult, please help me! I have a code that performs a query and when the input is incorrect the return is []…
-
-2
votes2
answers1164
viewsHow to use an image in a Javascript alert box?
Here I have a simple Javascript code: window.alert("iae"); when this alert box is displayed I wish I had an image inside the alert box I’ve seen it on many websites but I don’t know how it does.…