4

I am changing the URL with window.location but it postsback and jumb to the top

function ImageClick(Lnk) {
    window.location.href = Lnk;
    return false;                
}

how can i make such performance that happened here when u click next http://wonderwall.msn.com/movies/costume-institute-gala-at-the-met-12342.gallery?photoId=51564#!wallState=0__%2Fmovies%2Fcostume-institute-gala-at-the-met-12342.gallery%3FphotoId%3D51578

karim79
  • 339,989
  • 67
  • 413
  • 406
MirooEgypt
  • 145
  • 1
  • 4
  • 10

3 Answers3

1

The keyword you're looking for is "Ajax" :)

Nathan
  • 6,095
  • 2
  • 35
  • 61
1

AJAX!

Asynchronous JavaScript and XML (although JSON(P) is mostly used these days). AJAJ?

James
  • 5,137
  • 5
  • 40
  • 80
0

See this previous post:

Modify the URL without reloading the page

I strongly suggest against this as it's frowned upon however, as is mentioned in the above post. If you are going to use the code, do remember it's not cross-browser compatible.

Community
  • 1
  • 1
udjamaflip
  • 682
  • 1
  • 8
  • 24