• Publicidad

onClick='history.back()'

Discute todo acerca de JavaScript así como DHTML o la tecnología AJAX.

onClick='history.back()'

Notapor seafree » 2020-08-28 12:15 @552

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.003 segundos, usando GeSHi 1.0.8.4


Gracias.
seafree
Perlero nuevo
Perlero nuevo
 
Mensajes: 296
Registrado: 2012-08-10 11:26 @518

Publicidad

Re: onClick='history.back()'

Notapor explorer » 2020-08-28 15:00 @666

¿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.002 segundos, usando GeSHi 1.0.8.4
JF^D Perl programming & Raku programming. Grupo en Telegram: https://t.me/Perl_ES
Avatar de Usuario
explorer
Administrador
Administrador
 
Mensajes: 14476
Registrado: 2005-07-24 18:12 @800
Ubicación: Valladolid, España

Re: onClick='history.back()'

Notapor seafree » 2020-08-28 15:39 @694

Gracias, explorer.
seafree
Perlero nuevo
Perlero nuevo
 
Mensajes: 296
Registrado: 2012-08-10 11:26 @518


Volver a JavaScript

¿Quién está conectado?

Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados