Preview

Javascript: C and Draw

Powerful Essays
Open Document
Open Document
2149 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Javascript: C and Draw
INTRODUCTION TO JAVASCRIPT {draw:rect} What is JavaScript? JavaScript was designed to add interactivity to HTML pages JavaScript is a scripting language A scripting language is a lightweight programming language A JavaScript consists of lines of executable computer code A JavaScript is usually embedded directly into HTML pages JavaScript is an interpreted language (means that scripts execute without preliminary compilation) Everyone can use JavaScript without purchasing a license {draw:rect} Are Java and JavaScript the Same? NO! Java and JavaScript are two completely different languages in both concept and design! Java (developed by Sun Microsystems) is a powerful and much more complex programming language - in the same category as C and C++. {draw:rect} What can a JavaScript Do? JavaScript gives HTML designers a programming tool - HTML authors are normally not programmers, but JavaScript is a scripting language with a very simple syntax! Almost anyone can put small "snippets" of code into their HTML pages JavaScript can put dynamic text into an HTML page - A JavaScript statement like this: document.write("" + name + "") can write a variable text into an HTML page JavaScript can react to events - A JavaScript can be set to execute when something happens, like when a page has finished loading or when a user clicks on an HTML element JavaScript can read and write HTML elements - A JavaScript can read and change the content of an HTML element JavaScript can be used to validate data - A JavaScript can be used to validate form data before it is submitted to a server. This saves the server from extra processing JavaScript can be used to detect the visitor's browser A JavaScript can be used to detect the visitor's browser, and - depending on the browser - load another page specifically designed for that browser JavaScript can be used to create cookies

You May Also Find These Documents Helpful

  • Good Essays

    They are used for webpage enhancement, adding small interactive components, can also be used to display large programs like of games or word processors. Java’s portability makes it unique for WWW.…

    • 559 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Some similarities in these programs are that there are specific words you cannot use in each language. These words are generally reserved for some other part of the language and if the is not some kind of distinction between the words this will cause an error. Though these languages have minor similarities they differ in the same way, some are case sensitive while others are not. They also say that most variables should begin with a letter but in two of these programs they can begin with an underscore and in Java you can use a dollar sign as well. Another key difference is the length of the variable name, in Visual Basic you are limited to a length of 255 characters while the other two have no restrictions on length. So for each language there are minor similarities and differences but in order to program in any of these languages you must know these rules in order to prevent errors from…

    • 878 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Devs010 Unit 3 Assignment

    • 261 Words
    • 2 Pages

    Lab practical will be used to carry out these tasks, students will be prompted to develop programs in JavaScript.…

    • 261 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    HTML is currently in its fifth revision or HTML53. With HTML5 a standard is set for how to display the web page; where pictures are displayed, fonts used for text and total layout of the page. XML (extensible markup language) is used for web documents. CCS (cascading style sheet) is written into the HTML document or attached as a file to define the appearance of the displayed page.…

    • 897 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Pt1420 Unit 7 Analysis

    • 737 Words
    • 3 Pages

    Each of these components is programmed in a specific language, for example, Perl, java. PHP, Python, Ruby, or Erlang. Almost every language supports web programming, Different syntax, and same semantics. Consequently, severer side developers have a tendency to solve every problem in her/his desired…

    • 737 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    JavaScript Arrays Lab

    • 531 Words
    • 4 Pages

    The objective of this lab is to familiarize you with JavaScript, JavaScript arrays, and JavaScript debugging.…

    • 531 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Week 5

    • 585 Words
    • 3 Pages

    What issues can arise with the use of JavaScript® language along with server-side programming, such as .NET? What issues does the programmer need to be aware of when developing in both languages?…

    • 585 Words
    • 3 Pages
    Good Essays
  • Good Essays

    It is a tool that you can use to eliminate repetitive types of information on your web pages. It is a file the server includes in a web page before sending it out to a browser. It uses headers, navigation panels, and footers. It’s useful because you only need to change one file and every web page using that element picks up the update.…

    • 411 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Web Browser

    • 463 Words
    • 2 Pages

    Various versions of browsers require specific scripts because the older browsers will need to use the older scripts as they are not designed to run on the later browsers however, all scripts will run on all browsers so there is not a problem with the type of script but more the version. To help try to counter this problem the developer can include varied versions of the scripts in comments so that the webpage will load on both old and new browsers. The comments will provide a way to hide the code so that there is less confusion. The comments will need to be removed though if the user updates their browser to a newer version as they will need to read what is in the comments rather than what isn’t. This is an effective way of providing support for multiple versions of browsers without having to rewrite the code repeatedly as you can just change the comments to change the version of the script to what the browser supports.…

    • 463 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Free Draw Analysis

    • 80 Words
    • 1 Page

    Another example of this art therapy category is free draw. Free draw is faily self-explanatory, drawing quickly without thinking. And then there is drawing completion. the patient is given a paper that already has some lines on it or maybe some form of a shape is on it. They have to work with what they start with and transform it into a bigger picture. This project can b transformed into a group effort if the therapist were to decide so.…

    • 80 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Basta

    • 1044 Words
    • 5 Pages

    => Are Java and JavaScript the same? => Do they have any difference?…

    • 1044 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Windows 7 Config

    • 10250 Words
    • 41 Pages

    Launching Programs And Files In An IFRAME * Navigate Subframes Across Different Domains * Submit Nonencrypted Form Data * User Data Persistence * Active Scripting * Allow Paste Operations Via Script * Scripting Of Java Applets * User Authentication Logon Internet Explorer 6.0 and Windows XP Professional do not contain the Sun Microsystems Java Virtual Machine (JVM). The first time you connect to a Web site that requires JVM support, you must download JVM.…

    • 10250 Words
    • 41 Pages
    Good Essays
  • Powerful Essays

    Vb Sof 540

    • 11992 Words
    • 48 Pages

    An HTML document is similar to a word-processing document in that it specifies how a particular text element will appear.…

    • 11992 Words
    • 48 Pages
    Powerful Essays
  • Good Essays

    Adobe Flash (also Adobe Flash Platform, formerly Macromedia Flash) is a multimedia and software platform used for authoring of vector graphics, animation, games and Rich Internet Applications (RIAs) which can be viewed, played and executed in Adobe Flash Player. Flash is frequently used to add streamed video or audio players, advertisement and interactive multimedia content to web pages. Flash manipulates vector and raster graphics to provide animation of text, drawings, and still images. It supports bidirectional streaming of audio and video, and it can capture user input via mouse, keyboard, microphone and camera. Flash applications and animations can be programmed using the object-oriented language called ActionScript. Adobe Flash Professional is the most popular and user-friendly authoring tool for creating the Flash content, which also supports automation via the JavaScript Flash language (JSFL). Adobe Flash Player makes the Flash content accessible on various computer systems and…

    • 605 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Web developer information with tutorials and references for topics such as HTML, CSS, and JavaScript…

    • 372 Words
    • 2 Pages
    Satisfactory Essays

Related Topics