开发者

How do I detect "the mode of redirection" using javascript?

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 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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜