Trabajo realizado por Israel Carreira.

La fecha y la hora son:

  1. Contenido inner del elemento ("h2") :

    document.getElementById("h2").innerHTML = [La fecha y la hora son :]

  2. Contenido outer del elemento ("h1") :

    document.getElementById("h1").outerHTML = [< h1 id="h1">< /h1> ]

  3. Contenido de la propiedad global ("location.href "):

    document.location.href = [" https://israelcarreira.neocities.org/fecha/index.html" ]

  4. Contenido de la propiedad global ("location")

    document.location = [ "https://israelcarreira.neocities.org/fecha/index.html" ]

  5. Contenidos de las propiedades globales ("screen.width" y "screen.height")

    document.screen.width = [1366 ]

    document.screen.height = [ 768 ]