<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
		<id>http://wikiserver.infomerce.es/index.php?action=history&amp;feed=atom&amp;title=Solucio_web_dom</id>
		<title>Solucio web dom - Historial de revisió</title>
		<link rel="self" type="application/atom+xml" href="http://wikiserver.infomerce.es/index.php?action=history&amp;feed=atom&amp;title=Solucio_web_dom"/>
		<link rel="alternate" type="text/html" href="http://wikiserver.infomerce.es/index.php?title=Solucio_web_dom&amp;action=history"/>
		<updated>2026-05-10T00:16:06Z</updated>
		<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://wikiserver.infomerce.es/index.php?title=Solucio_web_dom&amp;diff=3734&amp;oldid=prev</id>
		<title>Jnoguera: Es crea la pàgina amb «&lt;source lang=&quot;html&quot;&gt; &lt;!DOCTYPE html&gt; &lt;html&gt;     &lt;head&gt;         &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;         &lt;title&gt;Exercici Web Dinámica…».</title>
		<link rel="alternate" type="text/html" href="http://wikiserver.infomerce.es/index.php?title=Solucio_web_dom&amp;diff=3734&amp;oldid=prev"/>
				<updated>2015-02-03T12:06:29Z</updated>
		
		<summary type="html">&lt;p&gt;Es crea la pàgina amb «&amp;lt;source lang=&amp;quot;html&amp;quot;&amp;gt; &amp;lt;!DOCTYPE html&amp;gt; &amp;lt;html&amp;gt;     &amp;lt;head&amp;gt;         &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=UTF-8&amp;quot; /&amp;gt;         &amp;lt;title&amp;gt;Exercici Web Dinámica…».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
    &amp;lt;head&amp;gt;&lt;br /&gt;
        &amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=UTF-8&amp;quot; /&amp;gt;&lt;br /&gt;
        &amp;lt;title&amp;gt;Exercici Web Dinámica&amp;lt;/title&amp;gt;&lt;br /&gt;
        &amp;lt;script type=&amp;quot;text/javascript&amp;quot; src=&amp;quot;../JS/Ex4b.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;
    &amp;lt;/head&amp;gt;&lt;br /&gt;
    &amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
window.onload = function() {&lt;br /&gt;
&lt;br /&gt;
    // LOREM IPSUM&lt;br /&gt;
&lt;br /&gt;
    var loremIpsum = &amp;quot;Lorem ipsum dolor sit amet, consectetur adipisicing elit,\n\&lt;br /&gt;
                      sed do eiusmod tempor incididunt ut labore et dolore magna\n\&lt;br /&gt;
                      aliqua. Ut enim ad minim veniam, quis nostrud exercitation\n\&lt;br /&gt;
                      ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\&lt;br /&gt;
                      Duis aute irure dolor in reprehenderit in voluptate velit\n\&lt;br /&gt;
                      esse cillum dolore eu fugiat nulla pariatur. Excepteur\n\&lt;br /&gt;
                      sint occaecat cupidatat non proident, sunt in culpa qui\n\&lt;br /&gt;
                      officia deserunt mollit anim id est laborum.&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
    var random = Math.floor(Math.random() * 10) + 1;&lt;br /&gt;
    for (var i = 0; i &amp;lt; random; i++) {&lt;br /&gt;
        &lt;br /&gt;
        // CREAR PARRAFOS&lt;br /&gt;
&lt;br /&gt;
        var parrafo = document.createElement(&amp;quot;p&amp;quot;);&lt;br /&gt;
        var contenido = document.createTextNode(loremIpsum);&lt;br /&gt;
        parrafo.id = i;&lt;br /&gt;
        parrafo.appendChild(contenido);&lt;br /&gt;
&lt;br /&gt;
        // CREAR BOTONES&lt;br /&gt;
&lt;br /&gt;
        var boton = document.createElement(&amp;quot;button&amp;quot;);&lt;br /&gt;
        var texto = document.createTextNode(&amp;quot;Eliminar párrafo&amp;quot;);&lt;br /&gt;
        boton.id = i;&lt;br /&gt;
		&lt;br /&gt;
        boton.addEventListener(&amp;quot;click&amp;quot;, function() {&lt;br /&gt;
            &lt;br /&gt;
			var parrafoEliminar = document.getElementById(this.id);&lt;br /&gt;
            parrafoEliminar.parentNode.removeChild(parrafoEliminar);&lt;br /&gt;
			var botonEliminar = document.getElementById(this.id);&lt;br /&gt;
            botonEliminar.parentNode.removeChild(botonEliminar);&lt;br /&gt;
&lt;br /&gt;
        }, false);&lt;br /&gt;
        boton.appendChild(texto);&lt;br /&gt;
&lt;br /&gt;
        // AÑADIR ELEMENTOS AL BODY&lt;br /&gt;
&lt;br /&gt;
        document.body.appendChild(parrafo);&lt;br /&gt;
        document.body.appendChild(boton);&lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jnoguera</name></author>	</entry>

	</feed>