Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Jayadeep Reddy Thum
May 21, 2005, 12:44 am
rate this thread
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.