you have follow this code behind to setting the history window position problem:-
Javascript Window Properties for:
http://davidwalsh.name:80/article.php?s=david+walsh+blog#myAnchor
window.location = {
hash: '#myAnchor',
host: 'davidwalsh.name',
hostname: 'davidwalsh.name',
href: '
http://davidwalsh.name:80/article.php?s=david+walsh+blog#myAnchor';,
pathname: '/article.php',
port: '80',
protocol: 'http:',
search: '?s=david+walsh+blog',
replace: 'function replace() { [native code] }',
assign: 'function assign() { [native code] }',
reload: 'function reload() { [native code] }'
}
Javascript Redirect
How can this be used? One example is doing a JavaScript redirect:
window.location = '
http://davidwalsh.name';; //redirects to homepage