I have a text input in an HTML form where the system user inserts a link. This link is copied from the URL. I need to accept any kind of link, except for those 'shortened' URLs like 'goo.gl.'. How can I create a function to validate and verify t...
I need to create themes for my site, when I enter the site the person clicks a button to switch to the chosen theme, but clicking the button has to change beyond the css, the images contained in the site (which in the case are the images of the...
I have this code:
let inicial = -0;
const numeros = [1,2,3,4,5,6,7,8,9,10];
function proximo (){
inicial++
document.getElementById("lugar").innerHTML=''
alert(inicial)
for(let i = inicial-1; i...
I have a web site, and I make constant updates.
But after these updates on the server, the site does not update itself on the devices / desktop, I need to press CTRL + F5 to update.
The problem is that not everyone will give CTRL + F5 befo...
How do you call that code that when the client leaves the page pops up with some offer or asking the client not to leave?
Can anyone give an example of some code?
Notice: Undefined index: name in C: \ xampp \ htdocs \ test \ cadastrando.php on line 10
and so goes with all POSTS .....
The strange thing is that when I change from Portuguese to English, it does not make any mistake. Type, if you move =...
I have a dropdown within the other. the first one works, it opens the dropdown for the list of items.
I've tried dropping another dropdown into this list but that does not work.List and connection do not work.
<ul id="menu" class="nav nav-p...
Hello, how are you?
I saw some tutorials on the internet to put masks in input in HTML, and since I am new to JavaScript I imported the external library as shown below, but I must have imported wrong or used the function incorrectly because t...
I needed to get the contents of a div to my variable so that I can handle it and send it as an email.
I'm trying with JS however it's returning me error "undefined", my code looks like this:
var pegarTxt = document.getElementById("Total").t...