views:

44

answers:

0

Hello, During a browsing session, redirection usually occurs when,

  1. user clicks on an anchor element,
  2. user presses the reload button on browser,
  3. user clicks on any element and execute a javascript redirection, using window.location properties,
  4. programmatic (by javascript) redirection using window.location properties,

(There should be more)

I am trying to develop a javascript which I can classify them into two categories:
User-initiated and Programmatic.

I have tried a few prototypes but they aren't working.

Would anyone give me a hint?