Detect Popups

  • Thread starter Jayadeep Reddy Thum
  • Start date
J

Jayadeep Reddy Thum

Hello folks,

I was working on a script that takes a URL as the input and checks to
see if the landing page has any popups. I started off by checking for
window.open() functions but things got complex, because window.open()
can be a part of a normal function that's not called automatically when
the page loads. Worse, an external js file can popup a window or even
an iframe can contain code that triggers a popup. I won't say its
impossible to write something like this but it's very hard to make it
foolproof or is it?

Is there any other way to achieve what I'm trying to do? Is there a
command-line program out there that renders a page and detects a popup?
Wouldn't it be possible to write a program that can do that? And then
maybe make the perl script communicate with it.

Any suggestions guys?

Thanks a ton.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,468
Latest member
Fannie44U3

Latest Threads

Top