Jump to content

Pajo

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Pajo

  1. Hi all,

     

    This will be probably the newbiest question you have had to deal with!

    is it possible to trigger an event on one page which changes the source of an image on a different page?

     

    Background: I have created a display page with either red or green status indicators. The child page will have the "Controls"

     

    Here is my function

     

    function change() {
    var image = document.getElementById("imageID");
    image.src = "red.png"
    }
    On the "Control" page I have a button with onclick attribute
    <input type="button" value="Hard Down!" id="hybButton" onclick="change();">
    On the display page I have an image with an ID of "imageID"
    I can't get it to work, both pages are linked to the same .js file
×
×
  • Create New...