Is there anyway to make the textbox/input box in prompt multiline?...
I'm teaching myself JavaScript using Code Academy and I'm trying to make some simple code so that when prompt asks a question, the user reply gives a response. example. prompt says "what's your favourite colour?" user says ...
I've found similar questions on the net, but not a viable solution to them. My question, as the title suggests, is how could I leverage jQuery or Javascript to create a password prompt when, for example, a button is clicked. So the following,...
I believe it's a scope issue because I tried setting my function userPrmpt inside firstPartCook and it works. I set it outside, and it doesn't. So it's reading, but not keeping what is returned. I thought by placing it in the test var tha...
I followed the advice from a previous question to get my promps to add values to an array, but it has caused my program to throw up True values when they are not. HIGHEST_GRADE = 7; LOWEST_GRADE = 0; var course = new Array(); var grade = new Array(...
How to detect an empty value when user presses ok on prompt (and previously empties the prompt field)? I need to overwrite the old value with the new (empty) value. I'm doing this: var oldVal = 'something'; var newVal = prompt("Enter...
I was looking through the Phonegap sources for Android, and trying to verify that their notification.alert() method simply delegates to the native JavaScript alert() function. Their code does: Notification.prototype.alert = function(message, comple...
I need prompt the visitor for an integer between 1 and 100 and to continue prompting until a valid number is entered. Here is what I have: <script> var number = parseInt(prompt("Please enter a number from 1 to 100", "")); if...
I have a JavaScript function as follows: function popup(username) { var req = createAjaxObject(); var message = prompt("Message:",""); if(message != ""){ req.onreadystatechange = function() { if (req.readyState ==...
So, I have the code, its not done, but all i want it to do is display one alert box if I write the word 'help', and say something else if anything else is entered. function prompter() { var reply = prompt("This script is made to help yo...
©2020 All rights reserved.