how can i detect a window.location in order to prevent an event

Discussion in 'JavaScript' started by crispunk, Oct 11, 2010.

  1. #1
    hi, i'm working in script but this shouldn't be triggered if there is a window.location???

    Unfortunately i have no control on external javascript's, this should be a universal library.

    for example:

    if(window.location){
    obj.MyTrigger = false}

    Thanks,
     
    crispunk, Oct 11, 2010 IP
  2. winsoar

    winsoar Well-Known Member

    Messages:
    1,363
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Some sites don't seem to bother loading unless you are focused on that page so I think it must be possible.
     
    winsoar, Oct 11, 2010 IP