Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Introduction to javascript 1.3 for websites-part 1
#1
ex:1

<html>
<body>

<script type="text/javascript">
document.write("This is my first JavaScript!");
</script>

</body>
</html>

u must be aware of HTML / XHTML
to learn javascript

<html>
<body>
<script type="text/javascript">
...
</script>
</body>
</html>

now in this example
let's take a view

the <html> tag is used to start the webpage and similarly </html> is used to close the html page ...now the <body>section defines the body of the webpage and similarly </body> is defined to close the webpage

now the script tag tell the starting the javascript tag...
now where [...] is written here u can write any line

the command used for printing a kine is "document.write(any text)"

this command will write the line u have written in the braces...


for today it is over part 2 will be decided accorind to the popularity of part 1
[Image: 2d75599e9a.png]:superman:
Reply


Messages In This Thread
Introduction to javascript 1.3 for websites-part 1 - by Akshay* - 10-08-2009, 11:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  List of Top Websites to Learn How to Code tk-hassan 0 265 06-13-2021, 11:29 PM
Last Post: tk-hassan
  Free Worker HTML, CSS, Javascript ImFocuzz 2 1,100 04-05-2014, 10:01 PM
Last Post: VHPanda
  IP locator websites..? Fragma 17 3,918 10-28-2012, 09:54 PM
Last Post: Hack3rzGod
  [MyBBError Message] PLEASE HELP ME!! Enable Javascript Registration Error iRun 4 1,637 01-26-2012, 03:13 PM
Last Post: iRun
  Close Tab With Javascript. Qua 3 1,232 07-02-2011, 07:25 AM
Last Post: djakariuz

Forum Jump:


Users browsing this thread: 1 Guest(s)