08/24/2011 01:25 by wawaslope
<html>
<body><script type="text/javascript"> var str="Split String example"; document.write(str.split(" ") + "<br />"); document.write(str.split("") + "<br />"); document.write(str.split(" ",1) + "<br />"); document.write(str.split()); </script> </body>
</html>
The output of the above script is as follows:
Split,String,example
S,p,l,i,t, ,S,t,r,i,n,g, ,e,x,a,m,p,l,e
Split
Split String example
A:If else statements can be used in three different ways.if statement if...else statement if...else if....else statement If statement&nbs...(more)
A:Declaring Javascript variables : In Javascript variables are created using "var" keyword. When using a variable for the first time it is ...(more)
A:Create a basic page up with your head, body and the like. Open a Open up the page. Then enjoy the mass of pseudo-random digits you have crea...(more)
A:IE 5 and 6 Open Internet Explorer Select Internet Options from the Tools menu. In Internet Options dialog box select the Security tab. C...(more)
A:Add this JavaScript in the section, and it will work for Google Chrome and IE <script type="text/javascript"> var message = "Righ...(more)
Added Successfully!
×Voted Successfully!
×You can't vote for yourself
×You can't choose your own answer
×