1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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,974
    Likes Received:
    4,572
    Best Answers:
    124
    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