script tag

1639 questions


1 answers
76 views
0
To enter new values for an array in JavaScript

In php, $array = array();$array[] = value1;$array[] = value2;$array[] = value3;How do I do this in JavaScript?

2 years ago

1 answers
42 views
0
How to capitalize the first letter of a string in JavaScript

this is a test -> This is a testthe Eiffel Tower -> The Eiffel Tower/index.html -> /index.htmlI want to capitalize the first letter of the string in JavaScript like this, but I don't know how...


1 answers
17 views
0
How do I save it in float format in JavaScript?

I'd like to convert float to String in JavaScript. How can I see only the second decimal place? For example, if I have 0.3445434, I want to save up to 0.34

2 years ago

1 answers
19 views
0
To get the first element of a string

in javascript I'm using Internet Explorer 7.Trying to get the first element of a string in JavaScriptvar x = 'somestring';alert(x[0]); // returns undefinedWhat's wrong with this code?

2 years ago

1 answers
145 views
0
. How do I know if the email address is valid in JavaScript?

How do I know if the email address is valid in JavaScript?


1 answers
44 views
0
How to play music in JavaScript

I'm making a game using HTML5 and JavaScript. How do I play music with JavaScript?

2 years ago

1 answers
92 views
0
How to get the current URL from JavaScript

I use jQuery. How can I get the current URL path?For examplehttp://localhost/menuname.de?foo=bar&number=0I mean, this url.

2 years ago

4 answers
17 views
0
I have a JavaScript library question.

When studying JavaScript,During library There are JS Library and jQuery.I am studying JavaScript at KahnacademyWhich should I study first, JS Library or jQuery?Also, is JS Library the original library...

2 years ago

1 answers
24 views
0
How to write JavaScript to get what the selected values in the list

How do I get the selected value from the list box? var as = document.form1.ddlViewBy.value;var e = document.getElementById(ddlViewBy);var strUser = e.options[e.selectedIndex].value;var value = documen...

2 years ago

2 answers
18 views
0
Repeating the text N times

In Perl, if you want to repeat a text N times, you can do $a = a x 10; aaaaaaaa' It's like this, but is there anything like this in JavaScript?

2 years ago
« - 121 - »

© 2024 OneMinuteCode. All rights reserved.