How do I detect "the mode of redirection" using javascript?
During a browsing session, redirection usually occurs when,
- user clicks on an anchor element,
- user presses the reload button on browser,
- user clicks on any element and execute a javascript redirection, using window.location properties,
- programmatic (by javascript) redirection using window.location properties,
(There sho开发者_JS百科uld 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?
精彩评论