Am 02.02.2013 01:14, schrieb Steve Kallestad:
I work with an application that opens a modal pop-up window to do logging.

I want to add some javascript to the pop-up, but I'm unsure how to do it.

The address shown in the address bar changes according to the page that
launched it.  The title of the pop-up window is consistent.

Is it possible to attach a script to specific page titles, or to pop-up
dialogs from a particular server?


You needn't attach a script to specific URLs, you can also use a part of the URL, if you are refering to that kind of stuff. The rule

@include http://www.example.org/page.html?url=*

matches both "page.html?url=foo.org" and "page.html?url=bar.com".

But nevertheless it's possible to trigger scripts based on the window title, if necessary. I'll send the code if you still need it after reading this mail.

By the way: I'm not sure you actually mean "modal", a modal pop-up would not allow interactions with the opened webpage until it's closed, so there'd not be much to log, would it?

Chris

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to