Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

Q394 How can I prepare a link so that it already has escape search text?

You are here: irt.org | FAQ | JavaScript | Link | Q394 [ previous next ]

If you use the following simple form, you can work out what the escaped name and value pair should be:

<input type="text" name="inputn" size="60" value="parameter name">
<input type="text" name="inputv" size="60" value="parameter value">
<input type="button" onClick="this.form.output.value=escape(this.form.inputn.value) + '=' + escape(this.form.inputv.value)" value="Convert">
<input type="text" name="output" size="60">

And you can then use this to hardcode your link urls, for example:

<a href="apage.html?parameter%20name=parameter%20value">a text link</a>

©2018 Martin Webb