plic_ploc
use este script no html que irá receber os parâmetros:
function getParametro( id ){
valor = "";
url = window.location.href;
posInit = url.indexOf( "?" );
if( posInit == -1 )
return null;
posId = url.indexOf( "?" + id + "=", posInit-1 );
if( posId == -1 ){
posId = url.indexOf( "&" + id + "=", posInit-1 );
}
if( posId == null ){
alert("Erro");
return;
}
posE = url.indexOf( "&", posId + 1 );
if( posE == -1 ){
valor = url.slice( posId + id.length + 2, url.length );
}
else{
valor = url.slice( posId + id.length + 2, posE );
}
return valor;
}
function encodeURL( url ){
posId = window.location.href.indexOf( "?" );
if( posId != -1 )
return url + window.location.href.slice( posId , window.location.href.length )+"";
else
return url+"";
}
para obter o parâmetro use:
value = getParametro( 'temporario' );