Questions tagged as 'javascript'

3
answers

JavaScript check broken links

Is it possible to check broken links in an html file using javascript and if broken is flagging with different color, or flag links that are not broken with a specific color like when they are visited? I have this script that lists the links...
asked by 26.06.2018 / 04:35
2
answers

Javascript: How to do a random based on time?

How to add value to text? And how do you make it stay in this format? for example: ADQ2018060601513610 (20 characters) Example: function insertNewSigCdAdq() { var pkchaves = document.getElementById("txtPkChaves").style; p...
asked by 06.06.2018 / 20:25
2
answers

How to select input with checked checked?

I have this code: <input type="radio" name="rankeamento_por" id="rankeamento_por2" value="PROC_MEM_KB" checked> MEMORIA <input type="radio" name="rankeamento_por" id="rankeamento_por" value="PROC_CPU" > CPU <input type="radio" n...
asked by 09.05.2018 / 15:26
1
answer

Why does NaN return? and how to return Number?

Why does the following code return NaN (Not a Number)? - and how to return the result of (balance) * (index) in number? function ContaPoupanca(){ this.saldo = 0; this.deposita = function(valor){ t...
asked by 23.05.2018 / 19:34
2
answers

How to simulate scrita in input by Javascript (without Jquery)

I need to simulate an input as if someone is typing this includes calling the Keyup, KeyDown, Keypress, Change etc events. Just javascript even without JQuery.     
asked by 20.05.2018 / 01:59
3
answers

How to do a push array on an object inside another object

I have an array of objects and I'm not able to push a given object, eg I want to give a push in the id2 title but nothing I did worked out, follow the structure of the array if someone knows how to thank Objt = [{ titulo1: [ {...
asked by 17.03.2018 / 20:31
2
answers

How to avoid the page load when I click Calculate in the form with JavaScript

I'm doing this program for a college job with HTML CSS and JS. But whenever I click on calculate the page reloads and the result consequently somo. I've already tried other questions here and in other forums but I did not find anything that work...
asked by 26.02.2018 / 21:52
5
answers

Catch only part of a url

Good afternoon! How can I get only a part of a current url? For example, let's say I have the following url: link I would like to get only the value that comes after ?ip= in this case dispensacao#15 Thank you     
asked by 28.02.2018 / 18:05
1
answer

Print single element on all print pages

I'm developing a WEB system and at the time of printing the precise screen I put at the end of each page a imagem , is it possible? So far I have the following code: .hide{ display: none; } <!DOCTYPE html> <h...
asked by 23.02.2018 / 16:02
2
answers

Add json object with pure js

I have the following object json1:{A:1, B:2} json2:{A:4, C:3} How do I get json1 to get data from json2 , overriding if it finds an equal key and moving if it does not find, more or less what json1 would result in: jso...
asked by 14.03.2018 / 13:44