Questions tagged as 'javascript'

3
answers

Remove accents (javascript)

I have this script below with the function toLowerCase(); I would like to add another function to the function toLowerCase(); What would be the line with the two functions together? <script language=""> function kw_l...
asked by 15.09.2017 / 19:54
1
answer

Why does "undefined" occur even when defining the exact element to be reached?

I'm applying a injection in the address bar of the web browser , on the page of a video on youtube, in which I want to extract the date of the posting of the same. If we open this link we see a div similar to this: Whenweselectt...
asked by 25.02.2017 / 17:21
2
answers

Scope between variables - Javascript

Hello I'm studying Javascript and I'm having a question. I come from a world called Java and there exists the modifiers of access private, protected, public and even variable without declaration of modifier; and with that I'm a little lost in...
asked by 09.02.2017 / 21:54
3
answers

Check external file loading with JS

My home page has a video as a background, but sometimes the video takes a long time to load. In this situation I thought about creating a loading before the page was displayed, my question is how can I check with jquery/javascript...
asked by 10.02.2017 / 14:27
2
answers

How to create an object with two or more instances in JavaScript?

In JavaScript I know you can create an instance of a class using 'new' new Classe And how to create an object that is multi-class instance? For example new Classe, OutraClasse... I think this might be possible because it warns...
asked by 28.08.2016 / 21:37
3
answers

Url array - Next button

PHP $urls = Array('www.1.com.br','www.2.com.br', 'www.3.com.br'); HTML <iframe src="www.1.com.br" width='100%' height='100%'></iframe> <button>Proximo</button> How do I always click on the next button to up...
asked by 01.11.2016 / 05:08
3
answers

How to disable console.log for certain js file?

I have many console.log commands in a regras.js file. I would like to know if there is a way to disable% only in this file, since commenting on each console.log would be very time consuming, as there are many. Notes: I've alre...
asked by 06.04.2016 / 16:18
2
answers

How to include a js from another domain in html?

Hello, I have an .js file in link . I would like to call it in another location (mydomain2.com) with <script src="meudominio.com/arquivo.js" ></script> , however, gives file not found. And the name is correct and I can access...
asked by 03.03.2016 / 20:22
2
answers

How to pick up multiple items and play in a single item?

Hello, I wanted to know how I can get these li's all and put only the first <ul> . <ul> <li>1 </li> <li>2 </li> <li>3</li> <li>4 </li> </ul> <ul...
asked by 23.05.2016 / 17:44
3
answers

Remove special characters and accents in javascript

Personal I'm trying to pull special characters in javascript. But I'm having a problem, the character is being deleted and that's not what I wanted. I would like only the special character to be removed. var texto = "joão 1444?"; v...
asked by 22.04.2016 / 15:16