works in opera / firefox / chrome / safari, but doesnt work in IE. does anyone have a fix or solution or hack around this problem?
ps: the script is just to demonstrate my problem
Quick idea, could it be that you need an escape character?
I have to run but I dont think javascript requires one for the # sign, but trying /# wouldn’t hurt would it.
Hack-wise, I got nothing that is the only way I have ever known how to have a link open a search sorry.
When I come back, Ill do some research and get back to you.
When you visit google.com there is a permanently moved redirect (response code: 301 Moved Permanently) to www.google.com, during which for some strange reason Internet Exporer loses the fragment identifier.
Try your luck on www.google.com instead of google.com, and let us know if you have any better results.
I.E. sends exactly the same string but Google seems to have a reason to reject it for I.E. and also Opera.
I got your code to work substituting /search?q= for /#?= . Is there any reason you can’t use that format?