> Your example works fine but it's not really what I'm looking for as I
> have the real url as href because I want the link to work if someone
> opens in a new window/tab.

"Open  in  new  window"  = using browser-native methods to execute the
default action.  

There's  nothing  about  the  current  Fiddle that won't work with the
default action -- if your back-end understands it.

> I tried to modify your example to take the real url with hash but that
> didn't work.

If you do this with a hash-style navigation, your back end needs to be
changed  to  manage  state with hashes, i.e. if a request comes in for
#state,  the  back-end  page  needs to inspect 'state'. It's perfectly
doable, but you'll never do it with client-only modifications.

> I wonder if this could be done with a html5 solution.

Yes, but it will never be backward-compatible.

-- S.

Reply via email to