2

I need to change the URL using Javascript, is that possible? If so, how can I do it?

animuson
  • 53,861
  • 28
  • 137
  • 147
Israa Abd
  • 371
  • 3
  • 10
  • I need to change firefox using Javascript, is that possible !? and how to !! – mauris Feb 28 '11 at 14:28
  • Your question and the tags together don't make sense. Please add (much) more detail to your question, including how c# and asp.net are involved. – Andy E Feb 28 '11 at 14:28
  • Based on the comment replies to BalusC's answer, this is a duplicate of [Changing browser's address bar without refreshing](http://stackoverflow.com/questions/352343/changing-browsers-address-bar-without-refreshing). – Andy E Feb 28 '11 at 14:33

2 Answers2

1

You can go the way that Google Recommends for making Ajax apps crawlable using the window.location.hash

epascarello
  • 204,599
  • 20
  • 195
  • 236
1
window.history.pushState({ page : x }, '', '/default.aspx?page=' + x); 
Israa Abd
  • 371
  • 3
  • 10