criar server JS html;

CRIAR SERVER JS HTML COMPLETo

MUITO IMPORTANTE POR VEZES;

COLAR ESTE CODIGO DIRETO NO GOOGLE PARA SACAR INFO;

-------------------------------------------------------------------------------

<html>

<meta charset="utf-8">

<pre>

CRIAR SERVER SIMPLES E RAPIDO;

<script>

function changeSrc(){ document.getElementById('demo').src="https://www.bde.es/wbe/en/";

}

</script>

<iframe id="demo"src="https://www.bde.es/wbe/en/"width="100%"height="400"></iframe>

<input type="button"onclick="changeSrc()"value="vc ś capaz"/>



<form action="/upload" method="post" enctype="multipart/form-data">


    <input type="file" name="fileToUpload" id="fileToUpload">


    <input type="search" name="searchQuery" placeholder="Pesquisar">


    <input type="submit" value="Upload" name="submit">


</form>


    <form action="/upload" method="post" enctype="multipart/form-data">



        <input type="file" name="fileToUpload" id="fileToUpload">



        <input type="submit" value="Upload" name="submit">



    </form>


    COD SAQUE INFO ==-12

FORMULARIO RECEBER E ENVIAR MENSAGENS;

<form action="process.php" method="post">

  <label for="name">Nome:</label>

  <input type="text" id="name" name="name"><br>

  <label for="message">Mensagem:</label>

  <textarea id="message" name="message"></textarea><br>

  <input type="submit" value="Enviar">

</form>

--------------------------

RECEPTOR php do server

<?php

  $name = $_POST['name'];

  $message = $_POST['message'];

  // Processar e armazenar os dados no banco de dados

?>

</pre>

</html>

USAR E ABUSAR DESTE CODIGO;
MUITO EFICAZ;

------------------------------------------------------

<html> <meta charset="utf-8"> <para> CRIAR SERVER SIMPLES E RAPIDO; <script> function changeSrc(){ document.getElementById('demo').src="https://www.bde.es/wbe/en/"; } </script> <iframe id="demo"src="https://www.bde.es/wbe/en/"width="100%"height="400"></iframe> <input type="button"onclick="changeSrc()"value="vc ś capaz"/> <form action="/upload" method="post" enctype="multipart/form-data"> <input type="file" name="fileToUpload" id="fileToUpload"> <input type="search" name="searchQuery" placeholder="Pesquisar"> <input type="submit" value="Upload" name="submit"> </form> <form action="/upload" method="post" enctype="multipart/form-data"> <input type="file" name="fileToUpload" id="fileToUpload"> <input type="submit" value="Upload" name="submit"> </form> COD SAQUE INFO ==-12 FORMULARIO RECEBER E ENVIAR MENSAGENS; <form action="process.php" method="post"> <label for="name">Nome:</label> <input type="text" id="name" name="name"><br> <label for="message">Mensagem:</label> <textarea id="message" name="message"></textarea><br> <input type="submit" value="Enviar"> </form> -------------------------- RECEPTOR php do server <?php $name = $_POST['name']; $message = $_POST['message']; // Processar e armazenar os dados no banco de dados ?> </pre> </html>

--------------------------------------------------------------------------------------------------------------------------

<!DOCTYPE html>

<html>

<head>

    <title>Sua Página</title>

</head>

<body>

    <h1>Exemplo de Mudança de Links e Pesquisas no Índice</h1>

    <!-- Adicione seus links e pesquisas aqui -->

    <a href="https://partidochega.pt/">Link para Exemplo</a>

    <br><br>

    <form id="searchForm" action="https://partidochega.pt//pesquisa">

        <input type="text" id="searchInput" name="q">

        <button type="submit">Pesquisar</button>

    </form>


    <!-- Crie um botão que acionará a mudança -->

    <button onclick="mudarLinksEPesquisas()">Mudar Links e Pesquisas</button>


    <script>

        // Sua lógica de JavaScript será adicionada aqui

        function mudarLinksEPesquisas() {

    // Mudar um link

    var link = document.querySelector('a');

    link.href = 'https://partidochega.pt/index.php/distrital_faro/';


    // Mudar a ação do formulário de pesquisa

    var form = document.getElementById('searchForm');

    form.action = 'https://partidochega.pt/index.php/distrital_faro//pesquisa_nova';

}

    </script>

</body>

</html>

JAVA SCRIPT DO MODERNO AO ANTIGO;


<html>

<meta charset="utf-8">

<pre>


<h1 id="demo">The Document Object</h1>

<h2>The getElementById() Method;<br><img src="https://i.pinimg.com/originals/01/f8/69/01f869cba4fd662ac20a0b05eb36f04b.gif"width="60%"><p style="color:green;">Seja feliz por favor;</p></h2>

<w id="demo1"></w>

<script>

const myElement = document.getElementById("demo");

myElement.style.color = "red";

document.write(23*234,'<br>');

document.write("seja feliz por favor");

document.getElementById("demo1").innerHTML="<img src='https://art.pixilart.com/9df139dd9e18f27.gif'width='50%'>";


</script>

</pre>

</html>

Código versos janela window;

<!DOCTYPE html>

<html>

<head>

    <title>Exemplo de Janela Popup</title>

    <h1 style="color:green;">janela de versos window;</h1>

    <script>

        function mostrarVersos() {

            var versos = "Este acontecer; Prosa crescer, que vida este viver; Apenas é o que tem de ser;";

            var poesia = "Aqui encontro o encontrar; ser vida; Apenas amar; Aqui encontro o que tenho de encontrar;";

            var myWindow = window.open("", "", "width=300, height=200");

            myWindow.document.write("<p>" + versos + poesia + "</p>");

        }

    </script>

</head>

<body>


<button onclick="mostrarVersos()">Mostrar Versos</button>

<pre>

Seja feliz por favor;<br>

<img src="https://i.gifer.com/embedded/download/3pLc.gif"width="40%">

</pre>

</body>

</html>