CSS font stacks & developer FAQs with Web standards
Site navigation below

One of hundreds of answers available with our premium content service.

Part answer, see below for more

A: Yes, it is possible to get the referring search engine query, if the browser exposes the document.referrer property, which is the URL of a page that links to the current page. For security reasons, some browsers allow users to control whether referring page information is available. The complete example below solves several significant technical and other security issues to obtain a clean, plain text copy of the original keyword phrase:

  1. Find the domain name of the referring search engine.
  2. Look-up the query parameter name used by each search engine.
  3. Identify and extract the query value from the referring results page URL.
  4. Decode the URL encoded query to plain text.
  5. Clean the query to remove potentially malicious markup.
  6. Use the entrance keywords to set the style of the page.

… full answer hidden

Click for full answers

Premium members click below for full answer
Can I use Javascript to get entrance keywords from a search engine?

Premium service benefits

Your premium content subscription is a single payment that gives you:

Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Site manager