Reputation: 539
I want to open a popup window for a printview and I have to pass the object id as get-parameter.
var w = window.open('http://example.com/print/?id=42');
But JavaScript cuts the querystring at this point and destroys my url.
http://example.com/print/
Is this a security feature? What can I do to pass the parameter? I cannot use nice urls. :(
Upvotes: 3
Views: 1380
Reputation: 11560
Remove '/' after ~/print. This should work
var w = window.open('http://example.com/print?id=42');
querystring should be followed by '?'.
Upvotes: 1