Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

split reverse and joining the string flowchart in Javascript JS with form values entered by user

Split reverse and joining the string flowchart in Javascript JS with form values entered by user.

  1. Flowchart of split reverse and joining the string.
  2. Program of split reverse and joining the string.
  3. Program of split reverse and joining the string with form values entered by user.

Flowchart of split reverse and joining the string.

split reverse and joining the string flowchart in Javascript JS with form values entered by user

Figure: split reverse and joining the string flowchart in Javascript JS with form values entered by user.

Program of split reverse and joining the string.

<!DOCTYPE html>
<html>
<head><title>Reverse string</title>
<script>
function reversing()
{
var S = document.getElementById("str").value;
S = S.split('');
S = S.reverse();
S = S.join('');
document.write(S);

}
</script>
</head>
<body>
<p>String <input type="text" id="str" value="I love T4Tutorials.com" /> <button id="str" onclick="reversing()">Reverse String</button>
</body>
</html>

Program of split reverse and joining the string with form values entered by user.

<!DOCTYPE html>
<html>
<head><title>Reverse string</title>
<script>
function reversing()
{
var S = document.getElementById("str").value;
S = S.split('');
S = S.reverse();
S = S.join('');
document.write(S);

}
</script>
</head>
<body>
<p>Enter String <input type="text" id="str" /> <button id="str" onclick="reversing()">Reverse String</button>
</body>
</html>


  List of All Programs of Javascript :¬†Click Here 
.

Fazal Rehman Shamil Click Here to Know More
Instructor, Researcher, Blogger, SEO Expert, Poet and Publisher of International Journal Of Software, Technology & Science ISSN : 2616 - 5325
Dear Professors and Resarchers!You are welome to Cite these tutorials in your research or slides etc. Please don't forget to mention the reference of website. Copy Paste of text is strcitly forbidden. Images can be reuse because images are protected with watermark.