jquery - Javascript: how to get event of self.location change? -


so want this:

if (top != self) {     top.location = self.location; } 

on self.location; change event. (it possible use jquery if needed love not to) possible , how such thing?

main idea keep popup windows on top. , here try modify window code onto top when user clicked on main pageto open new one. ifigured shall subscribe , listen self.location change event. wonder how it?

are trying 'frame busting'? or wanting know when top.location changes? if latter, presume detect changes hash tag value of url, otherwise location change loads new page, js never run.

if want check hash-tag change events (that is, content after # in url), read on similar question on so: on-window-location-hash-change.

if frame busting, there lot of related questions on such frame buster buster.

as interesting blog post on coding horror.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -