I need some help in JavaScript


0

7replies
5voices
222views
dloser
10 years ago

0

Your code should generate errors. Have a look at the error console (or something similar) in your browser. In this case you are missing a ‘}’ for the funky function.

Apart from that there are some other mistakes that you should be able to figure out easily when the above is fixed. (Also, the [i**] in your code is interpreted as a italics tag. You can easily avoid this by inserting spaces.)

aslan1433
10 years ago

0

you can try to do on the onClick event pass the event to one function, and then in the function capture if the key you’ve enter is the “enter” or another. And if it was the “enter” (with a condition in the function) do the alert (the message of the alert must be enclosed in quotes).

dedsec_shadow
10 years ago

0

@e-Brahim dude go learn more about java scrip it is possible what you ask w3schools.com is a great place to start

vanyle
10 years ago | edited 10 years ago

0

My solution :
```

```
I don’t test it but it’s look ok

dedsec_shadow
10 years ago | edited 10 years ago

0

@vanyle line 15 there is an error and why you typing input type='text' instead of input type = "text"? i personally have never used ‘ over "

dloser
10 years ago

0

It’s not an error, but it is inconsistent. :)

vanyle
10 years ago

0

I coded this really quickly , i know my code is a bit ugly

You must be logged in to reply to this discussion. Login
1 of 8

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss