Liron Harel
Liron Harel

Reputation: 11247

Find script responsible for opening a new window

I have a website that that suddenly start triggering a new ad window, something that I didn't do myself. I want to know how can I know which part of the page or script is responsible for opening the new window after I click a specific link?

There are a lot of files, so I am searching for a tool that can catch those specific javascript codes that do pop ups. Then I can find the source of the code and neutralize it. I prefer not to do manual search because there are a lot of JS files.

Upvotes: 0

Views: 93

Answers (2)

TGH
TGH

Reputation: 39248

In IE press f12 and start the profiler. It will tell you what javascript has executed so far during your browsing session. I would look at the calls there to narrow it down.

Upvotes: 1

progrAmmar
progrAmmar

Reputation: 2670

It should be something like

window.open()

In JavaScript

Upvotes: 0

Related Questions