Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/jcmouse/public_html/app/code/include/model/database/db.class.php on line 18

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/jcmouse/public_html/app/code/include/model/database/db.class.php on line 18

Deprecated: Function eregi_replace() is deprecated in /home/jcmouse/public_html/app/code/include/model/database/posts.php on line 322

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/jcmouse/public_html/app/code/include/model/database/db.class.php on line 18

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/jcmouse/public_html/app/code/include/model/database/db.class.php on line 18
Redireccionar pagina web con JQuery - Code Army!
APUNTES SCHOOL/UNIV | Hace 12 años          

Redireccionar pagina web con JQuery


Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/jcmouse/public_html/app/code/include/model/database/db.class.php on line 18

Para direccionar una pagina web utilizando jQuery se utiliza la sentencia:

  1. $(location).attr('href',URL_PAGINA_WEB);

Por ejemplo:

Si la pagina a la queremos direccionar esta en el mismo nivel que nuestra pagina:

  1. <input name="boton" type="button" value="Suscribete" onclick="$(location).attr('href','registro.html');" />

O si la pagina pertenece a otro sitio web

  1. <input name="boton" type="button" value="Suscribete" onclick="$(location).attr('href','http://wwww.google.com.bo');" />

Tags
Fuentes de Información
  • El contenido del post es de mi autoría, y/o, es un recopilación de distintas fuentes.
Dar Puntos
Quitar Puntos
 
1 Puntos
score +1/-0
43842
Visitas
Sistema Oper
Apuntes School/Univ
Scrum en 5 m
Apuntes School/Univ
Comentarios
Mouse
Querido Lider
 
 Bolivia
Pais
 
 9889
Puntos
 
 225
Posts
 
 6
Preguntas
 
 10
Respuestas
 
 Hombre
Sexo
X

Se parte de Code Army!

Esta acción es solo para usuarios registrados