title: Do something if location.hash is equal to some value in jquery
body: <p>I have a function called Designer and I want to return this function if location.hash equals isDesign. I tried the following...</p>
  
  <pre><code>function Designer() {
    $("#boxA").fadeIn(700);
    $("#boxA span#closeControl").on("click",function(){
     $("#builderBox").fadeOut(700);
    });
  }
  if (location.hash = "isDesign") {
  return Designer();
  }
  </code></pre>
  
  <p>Instead of the function executing, it assigns the isDesign hash to the url and reloads the page several times. Please, what should I do to correct this. All answers will be appreciated. Thank you.</p>