Javascript 'if' statement

Discussion in 'JavaScript' started by OnyxWolf, Aug 15, 2010.

  1. #1
    I tried this in HTML but apparently Javascript would suit this better.
    I am trying to code something that will produce a link to a pop-out frame only when the frame starts a new game(which happens randomly).
    I automatically assumed that this part of the url;" &isGameActive=true "
    would come into the 'if' statement however so far I can't seem to find the right coding to suit this. I can explain more if this is unclear and any help is very much appreciated.
     
    OnyxWolf, Aug 15, 2010 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,840
    Likes Received:
    4,542
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Javascript can pick up the window.location value and then break that down to get the isGameActive value.

    Javascript is definately the right way to do it.
     
    sarahk, Aug 15, 2010 IP