Soy Rafael Ricardo Rivas Chapon

Mi entrega P2P Obligatoria Módulo 3

La fecha y la hora son:

Instrucciones para acceder a propiedades del DOM

Para mostrar el contenido de
id="h2"
id="h1"
global: location.href
global: location
globales: screen.width y screen.heigth

El código javascript agregado al script es:

var mostrar = document.getElementById("mostrar"),
h2 = document.getElementById("h2").innerHTML,
h1 = document.getElementById("h1").innerHTML,
globalLocRef = location.href,
globalLoc = location,
globalView = "Ancho: " + screen.width + "px y Alto: " + screen.height + "px";
mostrar.innerHTML = '<strong>Contenido de la propiedad innerHTML de id="h2"</strong> <br />' + h2 + '<br />' +
'<strong>Contenido de la propiedad innerHTML de id="h1"</strong> <br />' + h1 + '<br />' +
'<strong>Contenido de la propiedad global : locatio.href</strong> <br />' + globalLocRef + '<br />' +
'<strong>Contenido de la propiedad global</strong> <br />' + globalLoc + '<br />' +
'<strong>Contenido de las propiedades globales screen.width y screen.height</strong> <br />' + globalView + '<br />';