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 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...
How do I create a javascript prompt box where you have to select 1 of 3 choices? I'm looking to do something similar to a html form's radio buttons except within a javascript prompt....
I am writing some bookmarklets here and I have some questions related to built-in javascript functions.  Let's say I want to replace the built-in prompt function (not necessarily in a bookmarklet).  That seems easy enough, but is there a way to c...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.