Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change browser address bar URL with jQuery & ajax without reloading page [duplicate]

Tags:

jquery

ajax

php

Change browser address bar URL with jQuery without reloading For example,

www.mywebsite/list.php?page=1

<a href="?page=<?php $row[id] ?>" > this link </a>

on click change address bar ?id=123 etc...

like image 491
Shauzab Ali Avatar asked Aug 29 '12 07:08

Shauzab Ali


1 Answers

not possible at all to change the url or even query string of the browser without reloading only part you can change without refresh is #hash part of the url till html4

But in html 5 some kind of url change can be done by the new HISTORY API give it a try

http://html5demos.com/history

like image 181
GajendraSinghParihar Avatar answered Sep 23 '22 20:09

GajendraSinghParihar