Portada del código
Publicación Routicket

Regresar a la pagina anterior con jquery History back() Method

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

#2494 Publicado 2022-12-24 06:56
Foto de Usuario

detalle del código

Regresar a la pagina anterior con jquery History back() Method

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

https://www.w3schools.com/jsref/met_his_back.asp

visor del código

imagen
Imagen del código
<p>W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.<br><br></p><h3 style="box-sizing: inherit; font-size: 24px; font-family: &quot;Segoe UI&quot;, Arial, sans-serif; margin: 10px 0px;">Example</h3><p style="box-sizing: inherit; margin-top: 1em; margin-bottom: 1em; font-size: 15px; font-family: Verdana, sans-serif;">Create a back button on a page:</p><div class="w3-code notranslate htmlHigh" style="box-sizing: inherit; font-family: Consolas, Menlo, &quot;courier new&quot;, monospace; font-size: 15px; width: auto; background-color: rgb(255, 255, 255); color: rgb(0, 0, 0); padding: 8px 12px; border-left: 4px solid rgb(4, 170, 109); overflow-wrap: break-word; margin-top: 16px !important; margin-bottom: 16px !important;"><span class="tagnamecolor" style="box-sizing: inherit; color: brown;"><span class="tagcolor" style="box-sizing: inherit; color: mediumblue;">&lt;</span>button<span class="attributecolor" style="box-sizing: inherit; color: red;">&nbsp;onclick<span class="attributevaluecolor" style="box-sizing: inherit; color: mediumblue;">="history.back()"</span></span><span class="tagcolor" style="box-sizing: inherit; color: mediumblue;">&gt;</span></span>Go Back<span class="tagnamecolor" style="box-sizing: inherit; color: brown;"><span class="tagcolor" style="box-sizing: inherit; color: mediumblue;">&lt;</span>/button<span class="tagcolor" style="box-sizing: inherit; color: mediumblue;">&gt;</span></span><br style="box-sizing: inherit;"></div><p style="box-sizing: inherit; margin-top: 1em; margin-bottom: 1em;">The output of the code above will be:</p>
#jquery

Comentarios



Publicado el 2022-12-24 | 06:56 | #2494

QR Code