mardi 30 juin 2015

If statement do nothing javascript

Okay so here's a simple question that i understood but got asked... let say you have and if statement

if (window.location.href == 'http://' ||
    window.location.href == 'http://?pg=pgOldMainMenu' ||
    window.location.href == 'http://default.asp#') 

else {

how can you say if positive do nothing else load this html

Aucun commentaire:

Enregistrer un commentaire