Results 1 to 1 of 1

Thread: Enabling/disabling style sheets remotely..... how to do it?

  1. #1
    Join Date
    Nov 2009

    Enabling/disabling style sheets remotely..... how to do it?

    Hi all,

    The standard method for enabling (showing) and disabling (hiding) a css style sheet is this:


    This method is used to change background pictures on a web page to other ones, say, if a user clicks a button or selects a drop-down option.
    You can have two css files with two different pictures, styleSheets[0] and styleSheets[1], and hide and swap them to make the picture change.

    However, "document" always refers to the current window you are in. If a web page has multiple windows (controlled by different css files), does anyone know how to disable the stylesheet of a Different window than the one you are in?

    For example:

    [the other window on the page].document.stylesheets[0].disabled=true??

    ? ? ? ? ?

    That way, you can click a button or change the drop down on one window, and have it affect the PICTURE in the other window.

    I've been stuck on this for days.
    Thanks for any help!
    Last edited by jeffpas; 11-06-2009 at 04:51 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center