I'm having problem with window.history.back() because it's returning only one page.
I use the following function:
<script type="text/javascript" charset="utf-8">
// Wait for device API libraries to load...
I get a value like this: /{mensagem} and if it was different (I did not have / before {mensagem) , I wanted it to return error.
{mensagem} serves as variable and can not be changed.
I would like to know how to add the amount of <li>
Here's an example:
<ul>
<li>exemplo 1</li>
<li>exemplo 2</li>
<li>exemplo 3</li>
<li>exemplo 4</li...
prompt is not appearing:
<script>
function numero(int num) {
return Math.round(Math.random() * num);
};
var chute = prompt("Qual e o numero? ");
var numeroPensado = numero(10);
if(chute == numeroPensado) {
document.write("Ac...
I have a background change system by Javascript on my site, and I want it when the user chooses the background they want, the background he chose to hold when he accesses the site again.
JavaScript
function mudar9(){ document.body.backgro...
Whenever I need to select more than one element on a page, I can not use querySelector() , right? Then we must use querySelectorAll() . I've always used it as follows (img is just a hypothetical example):
img = document.querySelect...
I need to get the current date and format it of the following type:
December 17, 2018
I'm using the date within a project in Vue.
The only reference I found was this however it is in pure javascript.
Has anyone ever had to do s...
I have a variable with the following content 00:00:01. I want to take the colon to have as final result 000001. I use the split but the result I have is 00,00,01.
var res = min_time.split(':');
I have a problem calling a program by PHP passing parameters.
Code:
<?
print("<script language=javascript>
alert(\" <<< Dados Alterados com Sucesso! >>>\");
if($w_rec != "")
{...
I have a div, welcome-inputs and within it another two left and right
left must be on the left side of welcome-inputs and right on the right side of welcome-inputs .
Both have width = 100p...