navigating to local anchor tag with JavaScript -


I'm trying to move an Intel XDK app Auto with ID = "page_6" to a new DIV when Function fails as follows:

  var fail = function () {alert ("geolocation failed"); window.location = window.location + "# page_6"; };   

However, the app does not go into the new DIV.

Any thoughts?

you window.location.href

 < code> window.location.href = window.location + "# page_6"   

By simply saying it to window.location (as in your example code) Uses works for me
Are you sure that your failed callback is being executed?

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -