please wait

  • Priyanka Chadda Mar-08-2019 12:29:07 PM ( 2 months ago )

    I'm trying to debug an issue on complex javascript page in Chrome, where ultimately clicking on a link ends up redirecting to another page.

    I'd like to find out where the code is that's actually doing the redirect, but can't seem to spot it.

    I can see in the Network tab of DevTools that the Initiator was a certain bit of javascript, but when I click on that link and view the javascript, I don't see any window.location... references of any sort, and have tried debugging through the code, but can't find it.

    Is there an easy way to detect when window.location is being used to redirect the page, even if it's being used in some wrapper library?

  • Nageshwer Reddy Mar-08-2019 12:31:40 PM ( 2 months ago )



    This might help you, I have had this issue before:

    1. Open Developer Tools
    2. Go to Sources tab
    3. Look for Event Listener Breakpoints
    4. Expand Load option
    5. Here check unload option

    Hope it helps! :)

Please login

Similar Discussion

Recommended For You