Questions tagged as 'javascript'

2
answers

problem getting the javascript data value

I have a problem getting data from a javascript data In the html I have the following line <span id="internet-compl" class="internet-item" data-precio="${empty elem.extraVl?0:elem.precio }" data-cantidad="1" data-vel="${elem.velocidad}"...
asked by 24.10.2017 / 20:21
1
answer

Control value of a Javascript variable

I have the following code, where there are 2 functions of draggable / droppable. For each element that is placed well, I increase my variable by 1 to know that all the elements were placed well. I did another function where I control that...
asked by 20.10.2017 / 00:58
1
answer

Generate a class btn link from an input

I am trying to generate a link (preferably a button) that is generated dynamically with the content of an input, I think I have gone far by modifying jquery codes. The link I want is a url like this: "index.php? order_of_purchase=" to which a...
asked by 20.10.2017 / 18:11
1
answer

audio on / off with javascript

I have the following codes: #headset { width: 500px; height: 500px; cursor: pointer; background-repeat: no-repeat; background-size: contain; background-image: url("https://image.ibb.co/bMKXrR/Zeichenfl_che_2...
asked by 18.10.2017 / 10:35
4
answers

Place alert to an image

I just made a slider but I want to put an alert when the user clicks the images, for example if you click on the image one that shows an alert that says this is image one.     
asked by 17.10.2017 / 00:44
2
answers

How to know if the tab is active?

How can I detect in the browser if the user has the tab (or tab) active ?. Is there any way? Let's say you want to log into the console every time you leave the tab only to know.     
asked by 16.10.2017 / 16:52
1
answer

window.history.forward () does not work in Firefox

I have the function: window.history.forward (); function dontback(){ window.history.forward(); } <body onload="dontback();"> <form blablabla > I use it so that the user can not go back, in Chrome...
asked by 16.10.2017 / 07:14
2
answers

Event onclick javascript button

How would you do it so that when you click on the Press button to see the months, the result shows it on the same screen and not that you open a new one and lose the format? <html> <head> <title>Meses del año</titl...
asked by 16.10.2017 / 20:24
1
answer

Matrix with Java Script

I need help with a job, I am new in what is programming and the teacher that I play does not teach us well what to say. I explain roughly what is the exercise: From a budget entered by keyboard I have to distribute among 37 municipalities, in tu...
asked by 02.11.2017 / 02:08
1
answer

how to make a field input type password show the last 4 characters

I would like to do as they do that the fields input with type password can show the 4 characters, it is very common in the areas where you pay with a card, that you put your card and shows you the last characters or digits     
asked by 02.10.2017 / 00:26