Document write
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Document write

on

  • 394 views

 

Statistics

Views

Total Views
394
Views on SlideShare
253
Embed Views
141

Actions

Likes
0
Downloads
3
Comments
0

1 Embed 141

http://inf.edu20.org 141

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Document write Presentation Transcript

  • 1. document.write Prof. María Zeballos
  • 2. document.write document.write uno de los comandos básicos de JavaScript. Permite imprimir el texto especificado en la página. Para imprimir texto literalmente, escribe el texto en comillas simples y entre paréntesis como sigue: document.write('Hola Mundo!'); El código anterior hará que el mensaje "Hola Mundo!" aparezca en la página. Prof. María Zeballos
  • 3. document.write También puedes utilizar document.write para imprimir variables. Introduce el nombre de la variable sin comillas, como por ejemplo: var mytext = "Hola otra vez"; document.write(mytext); Prof. María Zeballos