Página 1 de 1

onClick='history.back()'

NotaPublicado: 2020-08-28 12:15 @552
por seafree
Estoy un poco desesperada porque Perl no está aceptando la instrucción onClick='history.back()' de HTML en ningún navegador, lo cual quiere decir que tengo una mal formación que no encuentro. Agradeceré el apoyo del alguno de ustedes porque es algo tan simple que no encuentro el error :(

Sintáxis: [ Descargar ] [ Ocultar ]
Using html4strict Syntax Highlighting
  1. <!DOCTYPE html
  2.         PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  3.          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
  5. <head>
  6.       <title>AVISO</title>
  7.       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. </head>
  9. <body>
  10. <center>
  11.        <font face='arial' size='3'>
  12.        <br><B>CONSULTAR</B><br><br>
  13.        <font face='arial' size='3' color='red'>
  14.                POR FAVOR COMUNICARSE <b>A LA EXTENSION 33520</b></font></center><br><br><center><br>
  15.                <table width=62%><center><img src='../../../no_existe.jpg'></table>
  16.                <br><br>&nbsp;&nbsp;&nbsp;&nbsp;
  17.                <input type=button style="font:arial; color:#ffffff; background:#7495ab" value='Regresar' name=regresar
  18.                onClick='history.back()'>
  19. </center>
Coloreado en 0.002 segundos, usando GeSHi 1.0.8.4


Gracias.

Re: onClick='history.back()'

NotaPublicado: 2020-08-28 15:00 @666
por explorer
¿Perl? Será JavaScript... :-)

Buscando por la red, me sale window.history.back();

Sintáxis: [ Descargar ] [ Ocultar ]
Using html4strict Syntax Highlighting
  1. <input type="button" style="font:arial; color:#ffffff; background:#7495ab" value="Regresar" name="regresar" onClick="window.history.back();">
Coloreado en 0.001 segundos, usando GeSHi 1.0.8.4

Re: onClick='history.back()'

NotaPublicado: 2020-08-28 15:39 @694
por seafree
Gracias, explorer.