Read html parameters

I want to make a button , who gets his text and his URL by the parameters of that set at an HTML document
Can somebody help me?