Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/08/2008, 14:29
Avatar de jseros
jseros
 
Fecha de Ingreso: agosto-2008
Ubicación: Bogotá
Mensajes: 218
Antigüedad: 15 años, 9 meses
Puntos: 18
Respuesta: inhabilitar botones

Puedes utilizar las variables de la URL con la función.

Código:
function gup( name ){
	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp ( regexS );
	var tmpURL = window.location.href;
	var results = regex.exec( tmpURL );
	if( results == null )
		return"";
	else
		return results[1];
}
Con esta URL

http://www.ejemplo.com/pagina.html?miparametro=bot1

La usas de esta forma:

Código:
var param = gup( 'miparametro' );
alert( param );  //muestra "bot1"

Mucha Suerte
Muchas Suerte.