开发者

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

开发者 https://www.devze.com 2022-12-21 09:00 出处:网络
During a browsing session, redirection usually occurs when, user clicks on an anchor element, user presses the reload button on browser,

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

精彩评论

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