|
|
Q298 How can I pass a complete absolute url from one page to another?
irt.org | Knowledge Base | JavaScript | Link | Q298 [ previous next ] Q298 How can I pass a complete absolute url from one page to another?You need to pass the url following the ? in the url to the next page, however the passed url needs to be encoded so that non alphanumeric characters are converted to hexidecimal codes. this is simply done using the JavaScript escape() method:
In fact, in the first document you can avoid encoding the url, if you have already encoded it by hand:
And then subsequently decoded in the nextpage.html document using the JavaScript unescape() method:
Feedback on 'Q298 How can I pass a complete absolute url from one page to another?' |
-- div -->
|