title: How can I extract text to this class ("message": "Uncaught SecurityError: Failed to set the 'href' property on 'Location':)?
body: <p>Im trying to extract text <code>mm</code> from the <code>class="question-label active"</code> but not work give me a error.</p>
  
  <p>What is doing wrong ?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>/* myfunction declaration */
  function myFunction()
  {  
    var value = $('.question-label active').eq(0).text();
    window.top.location.href = 'http://' + value;
  };
  
  /* DOM ready callback */
  $(document).ready(function(){  
  
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;span lang="" class="question-label active"&gt;&lt;span class="or-output" data-value=" /ss4/county "&gt;&lt;/span&gt; &lt;span class="or-output" data-value=" /ss4/state "&gt;&lt;/span&gt;mm&lt;/span&gt;
  
  &lt;p&gt;Click the button to change the location of the first iframe element (index 0).&lt;/p&gt;
  
  &lt;button class="godd" onclick="myFunction()"&gt;Try it&lt;/button&gt;
  &lt;br&gt;&lt;br&gt;</code></pre>
  </div>
  </div>
  </p>