Is it your own website or a competitors. If its your own Google Webmaster Tools will give you a list of keywords.
First you have to extract the text from the web page by removing all the HTML tags, JavaScript code, CSS styles and leaving only the text content. Then add each word into associative array and sort it. The most frequently used words in the text can be considered keywords.