Questions tagged as 'javascript'

3
answers

Check if URL contains number

I would like to check if the current URL contains numbers after the #. I do not need to know if it contains a specific number or a number of numbers, I just need to know if there is any number after #. EX: link 123 TRUE link...
asked by 29.10.2018 / 21:18
1
answer

Capture an element id with javascript click

In document there are three <div> , all with the onclick event that calls a function. By clicking on any of the three, I would like to capture the id of <div> clicked. How can I capture the id of this element...
asked by 15.06.2014 / 04:58
3
answers

How to let embed YouTube responsive on the site, when I open I want Width to appear 100%

I already have several embed on my website however I do not want to go there and change 1 to 1. what I want is a code to change all Iframes , with 100% width and height adjust responsively. .conteudo{ background-color:#f1f1f1;...
asked by 16.10.2017 / 16:55
3
answers

Execute function after some time

Hello, I have the following code (just studying): $('#test').hover(function(){ $('.box-one, .box-two, .box-three').hide(); $(this).removeClass('test').addClass('another-test').stop().animate({'height':'210px'}); $('.my-...
asked by 16.03.2014 / 15:36
2
answers

Error declaring Javascript objects

function Casa() { var nome; var idade; function exibeInformacao() { console.log("O seu nome e: "+this.nome); console.log("Sua idade e: "+this.idade); } } var familia = new Casa();...
asked by 11.09.2014 / 19:36
3
answers

Selected date comparison with the current date JS

I've already searched the internet and right here on the site, but I could not find any clean and working way to do that. I need JS to compare the date in the field (which will be in a DD / MM / YYYY format) and compare with the current date...
asked by 12.05.2015 / 17:01
3
answers

How to remove specific words with javascript

How can I remove specific values from the page title? Title : STACKOVERFLOW REMOVE : STACK RESULT : OVERFLOW     
asked by 04.02.2015 / 00:10
3
answers

JS or jQuery sessions

Is there any way to use sessions in js or jquery? I would like to do something like the php sessions.     
asked by 19.03.2015 / 13:49
3
answers

Downloadable HTML link coming from the bank

I'm writing an address in the database and with ajax I'm looking for it to display to the user. Temporarily, I'm writing it to the input below: <tr> <td>Download:</td> <td><i...
asked by 13.01.2016 / 20:41
2
answers

Is there a performance benefit on replacing the "==" operator with the "===" operator?

I'm using JSLint to check if the JavaScript source code complies with the encoding rules, and it is returning many suggestions for replacing == (two equal signs) with === (three equal signs) when doing things like comparing id...
asked by 09.04.2018 / 02:38