Reputation: 2103
My situation is that i need to redirect user to specific page. page which has two inputs. normally they are blank and just wait to be filled. but when this redirection mentioned before is performed:
window.location.replace('new')
then i need those inputs to be filled. Question is how can i detec if i'm somewhere because of redirection. i was thinking about sending some special params and read them everytime i'm in this place with inputs. anybody knows how to send and read parameters with jquery/coffeescript?
Upvotes: 0
Views: 57
Reputation: 450
How about something like window.location.replace('new?arg1='+arg1+'&arg2='+arg2)
Upvotes: 2