2016-11-30 5 views
2

Gibt es eine Möglichkeit, ein Ereignis auszulösen, wenn ich window.location.href mit jQuery ändere?Jquery-Ereignis, das ausgelöst wird, wenn window.location.href geändert wird

Ich verwende onbeforeunload aber das löst nur dann, wenn es sich um eine Navigation zu einer neuen URL ist. Für mich muss das Ereignis ausgelöst werden, auch wenn ich den location.href ändere, indem ich "& Schlüssel" daran anfüge.

+0

https://books.google.co.in/books?id=_2eJYbM5vycC&pg=RA1-PA43&lpg=RA1-PA43&dq = window.location.watch & source = bl & OTS = ZNU1AeyNO4 & sig = 0SUHLw8KatBj6K1a5046x9UhHYw & hl = en & sa = X & ved = 0ahUKEwj60_nH_qfRAhUM0YMKHZS3Ax0Q6AEIRzAG # v = OnePage & q = window.location.watch & f = false – anshuVersatile

Antwort

Verwandte Themen