In advance, thanks for any help. I'm an absolute newbie to javascript so any help is much appreciated.
(see code below) I have two html pages, form values are entered into one & displayed on the other, however, the spaces between words are showing as a plus sign instead.
Any idea how to fix this so they are just spaces & not plus signs?
Thanks!!
Expand|Select|Wrap|Line Numbers
- function callinput(key)
- {
- if(window.location.href.indexOf(key+'=')!=-1)
- {
- a=window.location.href.split("?")[1].split(key+"=")[1].split("&")[0];
- <!--cleanup data-->
- a=unescape(a);
- a=a.replace(/\+/," ");
- document.write(a);
- }
- else
- {
- alert("Not all fields were filled. Please re-enter them.");
- history.go(-1);
- }
- }
- //-->
Expand|Select|Wrap|Line Numbers
- script language="javascript" type="text/javascript">
- <!--
- callinput("store")
- //-->
- </script>