- 1). Launch the standard, plain-text editor application that is available on your computer.
- 2). Enter the following code to test the JavaScript:
<html>
<body>
<script type="text/javascript">
var fullstring="The rain in Spain";
var URL="www.bethea.com/images/photo.jpg";
document.write("This is the slice() function: " + fullstring.slice(3,8)+"");
document.write("This is the substr() function: " + fullstring.substr(4,4)+"");
document.write("This is the substring() function: " + fullstring.substring(3,8)+"");
document.write("This is the split() function: " + fullstring.split(" ")+"");
document.write("Spliting the URL www.bethea.com/images/photo.jpg with the split() function: " + URL.split("/")+"");
</script> - 3). Click the "File" menu. Select the "Save" option. Save under the file name "test.html".
- 4). Launch the Web browser that is available on your computer. Click the "File" menu, and select "Open File."
- 5). Locate the file "test.html" you just created, select it, and click Open."
Tags
PHP
Programming
C C++
ASP
Development Tools
Ajax
XML
Javascript
Python
VB
VC
perl
dephi
Ruby
sql
technology
Microsoft Access
Excel
ffice
Powerpoint
Word
Oracle
Related Posts "Technology"
-
SPAwebsolutions Ensure Transform An Standard E-Store To An Excellent One
7/11/2019 8:41:00 AM -
IPraxa Offers Experience Letter on Completion of 3 Months Workshop
7/11/2019 4:43:00 AM -
Things to Consider before Outsourcing to a Web Design Company
7/11/2019 3:52:00 AM -
Great Quality Courtroom Shoes Can Enrich Your Functionality
7/11/2019 2:28:00 AM
You might also like on "Technology"
How to Split a String in JavaScript
7/10/2019 5:52:00 PM
Understanding Needs before Hiring a Programmer
7/10/2019 4:45:00 PM
Are you getting what exactly you expect from your web development services?
7/10/2019 3:40:00 PM
How to Find the Perfect Web Design Company Canada
7/10/2019 10:38:00 AM
impresion de afiches
7/10/2019 8:46:00 AM
We Have All of the Restoration Parts You Need for Your 69 Chevelle
7/9/2019 11:58:00 PM
X-cart developer: The key to successful online store
7/9/2019 7:54:00 PM
Getting Ideas For Running A Successful Web Design Business
7/9/2019 7:07:00 PM
Which Variable Data Types Are Stored in Sequential Order in Visual Basic?
7/9/2019 6:38:00 PM
Let’S Understand the Importance of Website Design.
7/8/2019 5:11:00 PM
Four Steps To Make A Website Visible On The Internet
7/8/2019 4:19:00 PM