Unstoppable Domains

Javascript replace help needed...

Spaceship Spaceship
Watch

Snoopy

Established Member
Impact
0
Hi,

I use the following string to change a form textbox - how will I alter the code to change multiple textboxes onclick?

Please help me....

Regards,

/P

<head>
<SCRIPT LANGUAGE="JavaScript">

var thisString;
function startText() {
thisString = document.text.body.value;
thisString = thisString.replace(/Ä/g, "Ä");
thisString = thisString.replace(/ä/g, "ä");
thisString = thisString.replace(/Å/g, "Å");
thisString = thisString.replace(/å/g, "å");
thisString = thisString.replace(/Ö/g, "Ö");
thisString = thisString.replace(/ö/g, "ö");

document.text.body.value=thisString;
}

</script>
</head>

and in the form onclick="startText();
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
After some googling I got the result that I needed - see ya!
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back