Javascript and CSS Popups

Posted by user183315 on Stack Overflow See other posts from Stack Overflow or by user183315
Published on 2010-03-22T12:21:16Z Indexed on 2010/03/22 12:31 UTC
Read the original article Hit count: 386

Hi all,

I've got a question about CSS based popup windows, like those generated by jQuery UI's dialog system, or Colorbox. If I use those (or something like them) to open a popup window to an HTML page and that page has Javascript in it, does the Javascript in the popup window run in its own context, or does it become part of the context of the Javascript in the parent window that opened it? I ask so that I can write the Javascript on both pages (parent and popup) so there is no namespace collision.

Thanks in advance! Doug

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery