Questions tagged as 'html'

2
answers

Detect if URL is a URL shorter

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...
asked by 18.04.2016 / 00:19
3
answers

Change the theme of a site

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...
asked by 20.08.2014 / 20:29
4
answers

How to update an element with JavaScript [duplicate]

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...
asked by 20.02.2018 / 19:33
3
answers

Refresh page automatically?

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...
asked by 05.02.2018 / 15:59
1
answer

Convert HTML to Wordpress

Is there a simple and quick way to migrate a static site from HTML to Wordpress ? HTML only as theme for WP     
asked by 02.02.2015 / 18:40
2
answers

Script to recover client

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?     
asked by 18.10.2016 / 03:33
3
answers

Why are you making these mistakes? # Registration Forms

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 =...
asked by 04.07.2016 / 00:41
1
answer

Nested dropdowns do not work. Why?

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...
asked by 20.02.2017 / 12:46
1
answer

How to import external JavaScript and put masks in inputs?

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...
asked by 06.10.2017 / 19:16
2
answers

What is the best way to get content inside a div for a variable?

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...
asked by 22.06.2018 / 07:15