anotaciones que no quiero recordar, ni olvidar

me

Saber la URL y el dominio actual con Jquery

Ratio: 5 / 5

Iniciar activoIniciar activoIniciar activoIniciar activoIniciar activo
 

Mostrar/Ocultar código jquery

Ver código
$(location).attr('host');                        www.test.com:8082
$(location).attr('hostname');                    www.test.com
$(location).attr('port');                        8082
$(location).attr('protocol');                    http
$(location).attr('pathname');                    index.php
$(location).attr('href');                        http://www.test.com:8082/index.php#tab2
$(location).attr('hash');                       #tab2
$(location).attr('search');                     ?foo=123