i want to redirect a page and attach json data with it.
i am currently using window.location.href command
and i am adding GET paramaters with it.
how can i add JSON data?
THanks in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it’s possible–using base64 encoding and a fragment identifier, you don’t even have to send your data using GET.
KJDF4822kdjhttp://your.domain/page#KJDF4822kdjusingKJDF4822kdjas a fragment identifier.page, extract the fragment identifier usingwindow.location.hash