I want to put a query in a URL using JavaScript, how can I do that?
2 Answers
4 Comments
FRP7
is there any away to add just one query? (instead of a infinite loop of queries)?
hungndv
You should make your question clearer. Could you make some illustration examples?
FRP7
to do something like this: original: server/myapp.php?id=10 what i want: server/myapp.php?id=10&enabled=true
hungndv
I think this would be simple:
window.location.href + '&enabled=true'
var foo = 'http://example.com?foo=bar'