Click here to Skip to main content
15,941,464 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: How to deal with Uncaught TypeError? Pin
Ted.K-124-Oct-15 19:44
Ted.K-124-Oct-15 19:44 
Questionhow to check the control is available or not? Pin
HoneyBee14-Oct-15 20:45
HoneyBee14-Oct-15 20:45 
AnswerRe: how to check the control is available or not? Pin
Blikkies15-Oct-15 4:49
professionalBlikkies15-Oct-15 4:49 
Questioncheck textbox validation outside the form tag in javascript Pin
HoneyBee14-Oct-15 20:43
HoneyBee14-Oct-15 20:43 
AnswerRe: check textbox validation outside the form tag in javascript Pin
Richard Deeming15-Oct-15 2:55
mveRichard Deeming15-Oct-15 2:55 
Questionjavascript question Pin
Member 1197204310-Oct-15 13:43
Member 1197204310-Oct-15 13:43 
AnswerRe: javascript question Pin
ZurdoDev13-Oct-15 5:35
professionalZurdoDev13-Oct-15 5:35 
AnswerRe: javascript question Pin
Member 1186114821-Oct-15 3:54
Member 1186114821-Oct-15 3:54 
The main difference between for and while is that (if you know how these conditional statements will work).
for is used to do a definite number of task i.e you know the limit for the process, say you want to print the number of anything in an array,etc.you can use counter to proceed further.
less interaction between user and machine.
while is same as for in some cases,you when the process will end but still in places like getting an input from the user which decides when the end should occur you have go with while.you can use you counters as well as boolean values.
i.e you can ask the user to whether continue or break after every successful process.interaction between the user and machine .

getelementbyid is used to get an input to a variable by using an id attribute from tag.
write is used to output the values assigned to it.
instead of this you can you use console.log().
sorry if it wasn't helpful because i'm new.
QuestionSubmit Button Image Pin
Member 120471849-Oct-15 14:22
Member 120471849-Oct-15 14:22 
AnswerRe: Submit Button Image Pin
Wombaticus10-Oct-15 7:54
Wombaticus10-Oct-15 7:54 
QuestionCross browser extension - standard fee and timeframe Pin
Enigma10019-Oct-15 4:00
Enigma10019-Oct-15 4:00 
AnswerRe: Cross browser extension - standard fee and timeframe Pin
Richard Deeming9-Oct-15 4:57
mveRichard Deeming9-Oct-15 4:57 
Questionselected image is appears in webpage when click on submit Pin
mokkapati sridevi7-Oct-15 22:16
mokkapati sridevi7-Oct-15 22:16 
AnswerRe: selected image is appears in webpage when click on submit Pin
Richard Deeming8-Oct-15 2:16
mveRichard Deeming8-Oct-15 2:16 
Questionimage click make login/register appear Pin
Peter Roman7-Oct-15 2:06
Peter Roman7-Oct-15 2:06 
SuggestionRe: image click make login/register appear Pin
Richard Deeming7-Oct-15 2:44
mveRichard Deeming7-Oct-15 2:44 
GeneralRe: image click make login/register appear Pin
Peter Roman7-Oct-15 6:34
Peter Roman7-Oct-15 6:34 
GeneralRe: image click make login/register appear Pin
Richard Deeming7-Oct-15 7:54
mveRichard Deeming7-Oct-15 7:54 
GeneralRe: image click make login/register appear Pin
Peter Roman7-Oct-15 13:17
Peter Roman7-Oct-15 13:17 
GeneralRe: image click make login/register appear Pin
Wombaticus13-Oct-15 0:46
Wombaticus13-Oct-15 0:46 
GeneralRe: image click make login/register appear Pin
Peter Roman13-Oct-15 4:03
Peter Roman13-Oct-15 4:03 
GeneralRe: image click make login/register appear Pin
Wombaticus13-Oct-15 4:27
Wombaticus13-Oct-15 4:27 
QuestionHow do i Restrict "@", "dotcom", ".com", "dot" from textarea Pin
Member 120389156-Oct-15 21:04
Member 120389156-Oct-15 21:04 
AnswerRe: How do i Restrict "@", "dotcom", ".com", "dot" from textarea Pin
Afzaal Ahmad Zeeshan6-Oct-15 21:58
professionalAfzaal Ahmad Zeeshan6-Oct-15 21:58 
QuestionDifference between Two dates Pin
Madhava_v28-Sep-15 0:56
Madhava_v28-Sep-15 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.