2

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

animuson
  • 52,378
  • 28
  • 138
  • 145
Israa Abd
  • 361
  • 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
  • 195,511
  • 20
  • 184
  • 225
1
window.history.pushState({ page : x }, '', '/default.aspx?page=' + x); 
Israa Abd
  • 361
  • 3
  • 10