|
Q394 How can I prepare a link so that it already has escape search text?
irt.org | Knowledge Base | JavaScript | Link | Q394 [ previous next ]
Q394 How can I prepare a link so that it already has escape search text?
If you use the following simple form, you can work out what the escaped name and value pair should be:
<form>
Name:
<br>
<input type="text" name="inputn" size="60" value="parameter name">
<p>
Value:
<br>
<input type="text" name="inputv" size="60" value="parameter value">
<p>
<input type="button" onClick="this.form.output.value=escape(this.form.inputn.value) + '=' + escape(this.form.inputv.value)" value="Convert">
<p>
Output:
<br>
<input type="text" name="output" size="60">
</form>
|
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>
|
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.