• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is it possible to write javascript in html?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is it possible to write javascript in html?? if yes how??

thanks in advance
[ December 01, 2008: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, inside script tag, i.e.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by BhanuMurthy Venkata:
is it possible to write javascript in html?? if yes how??

thanks in advance



What does that actually mean?

Eric
 
BhanuMurthy Venkata
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi eric,

i came to know that in jsp we can use javascript in the same way i got a doubt whether we can use javascript in html or not??...(by the way am new to programming and javaranch)
[ December 02, 2008: Message edited by: BhanuMurthy Venkata ]
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
maybe this will help
http://w3schools.com/js/default.asp
 
Duc Vo
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by BhanuMurthy Venkata:
hi eric,
i came to know that in jsp we can use javascript in the same way i got a doubt whether we can use javascript in html or not??...(by the way am new to programming and javaranch)


BhanuMurthy, JSP is a server technology, whereas HTML and JavaScript are client technologies. Normally, JSP is executed on the server to generate HTML outputs to clients (browsers). Hope it's clearer for you now.
 
reply
    Bookmark Topic Watch Topic
  • New Topic