For example, I have a script that takes the mouse coordinates:
function posicaoMouse(ev){
ev.preventDefault();
var x = ev.clientX;
var y = ev.clientY;
console.log(x);
console.log(y);
}...
Recently I saw a code that when adding a JavaScript file was set to the attribute type with the value module as in the example below:
<script type="module" src="arquivo.js"></script>
I would like to know what this...
I wanted, if it were possible, of course, that a component <Audio> of HTML5 would just show mute , and the rest would not show up; such as volume , play , pause , etc.
My .svg is not loaded in Firefox, in chrome it works fine. I'm using css to do this, with the background: url('data:image/svg+xml...) property.
I made a JSFiddle for example, containing all the code.
Edit:
I do not want to use base...
Studying I saw some code examples where input is placed inside label , this brought me a doubt, would it be semantic to use what elements within a label ?
<label for="campo">Descritivo do campo
<input type="text"...
I'm watching a tutorial, where the teacher at a certain point, minute 28 , sets the style of the elements of a ul to create a horizontal navigation bar , and do so using either float:left or display:inline . The problem is...
I'm trying to build a camera system for a game that I plan to do in pure javascript, but I can not produce the effect correctly. If anyone can see and fix it or guide me to read some tutorial I would appreciate it very much!
Images used:...
I have two inputs and I need the value of the input of term to be greater than the value of the start input. Both are text type. Could someone help me?
<div class="w3-half">
<label>Data de Início</label>
<i...
I recently started with ASP.NET MVC, and as you can see I'm playing in the if statement, else the tempData[]
and the one that happens is a following, every time I click inside the else in "View in Page Inspector" it gives me an error in t...