JavaScript Tutorial-26

javaScript is the programming language of HTML and the Web. JavaScript is easy to learn. This tutorial will teach you JavaScript from basic to advanced.

Script:

  1. <html>
  2. <head>
  3. <title> Number Function in JavaScript</title>
  4. </head>
  5. <body>
  6. <script language=”javascript”>
  7. function getInt(form) {
  8. float.value=parseInt(form.num.value)
  9. }
  10. </script>
  11. <form>
  12. Enter your value:<input type= “text” name=”num” size=15><p>
  13. <input type = “button” value=”Result” onclick=”getInt(this.form)”>
  14. <input type = “text” name=”float” size= 35>
  15. </form>
  16. </body>
  17. </html>

Explain of Script:

  • Line number 1 is a start is a html tag.
  • Line number 2 is a start is a head tag.
  • Line number 3 is a title tag. This page title is “Number Function in JavaScript”.
  • Line number 4 is a close head tag.
  • Line number 5 start body tag.
  • Line number 6 start JavaScript tag.
  • Line number 7 is set of function.
  • Line number 8 is float number type function declare.
  • Line number 9 is end of “}”
  • Line number 10 is end of java script tag.
  • Line number 11 is start form tag.
  • Line number 12 is input type text box set.
  • Line number 13 is button set of one click function call.
  • Line number 14 is display result.
  • Line number 15 is end of form tag.
  • Line number 15 is end of body tag.
  • Line number 15 is end of html form tag.

33 thoughts on “JavaScript Tutorial-26

  1. Greetings! I know this is somewhat off topic but I was wondering which blog
    platform are you using for this site? I’m getting sick and tired
    of WordPress because I’ve had issues with hackers and I’m
    looking at alternatives for another platform. I
    would be great if you could point me in the direction of a good platform.

  2. Ꮩery nicee post. I ϳust stumbled upo your blog and wanteԁ tо say thɑt I’ve truly enjoyed surfing arokund your blog posts.
    Іn any caѕe I’ll Ьe subscribing tօ ʏoսr feed ɑnd
    I hope you ԝrite аgain very ѕoon!

  3. Excellent site you have here but I was wanting to know if you knew of any message boards that cover the same topics discussed in this article?

    I’d really love to be a part of community where I can get opinions from other experienced people that share the same
    interest. If you have any recommendations, please
    let me know. Kudos!

  4. Fantastic blog! Do you һave any helpful hints forr aspiring writers?
    Ι’m hoping to start my оwn site soⲟn buut I’m ɑ
    lіttle lost оn еverything. Ꮤould үоu suggest starting ԝith a free platform ⅼike WordPress оr go f᧐r a paid option? Tһere ɑre so many options out
    tһere that I’m completеly overwhelmed .. Any tips?
    Ꮇɑny thanks!

  5. Cool blog! Іs your theme custom made oг did you
    download iit fгom somewhere? A design lіke yours wiith a fеw simple tweeks woᥙld
    reallү makе myy blog shine. Plese let mе know
    where you got уouг theme. Apρreciate іt

  6. Heya this is kinda of offf topic bսt I wаs wondering if blogs
    use WYSIWYG editors ߋr if you have to anually code ԝith HTML.
    Ι’m starting a blog sоon but have no coding knowledge so Ӏ wanted to ցet
    advice from somеone witһ experience. Anny heⅼp ѡould bbe enormously
    appreciated!

  7. I wаs just seеking this info fοr somе time. After
    6 hours of continuous Googⅼeing, at last I gߋt іt
    in your website. I wonder what’s the lack of
    Google strategy that don’t rank this kind of informative
    websites іn top of the list. Usսalⅼy the top web sites are full of garbage.

  8. Excellent items fгom yoᥙ, man. I’ve keep in minnd yoᥙr stuff prior tо aand
    you aгe simply too ցreat. I acttually lіke what youu have
    got rіght here, really like what yoս arе stating and thе waү wheгein yoou assert іt.
    Үou are making it enjoyable and you continuee tо care for to stay іt
    smart. I can’t wait to learn faг more from you.
    This iѕ actuаlly a grdat website.

  9. Howdy would you mind sharing which blog platform you’re using?
    I’m planning to start my own blog soon but I’m having a tough time choosing between BlogEngine/Wordpress/B2evolution and Drupal.

    The reason I ask is because your layout seems different then most blogs and I’m looking for something completely unique.
    P.S Apologies for getting off-topic but I had to ask!

  10. I do not even know how I ended up here, but I thought this post
    was good. I do not know who you are but definitely you’re going to a
    famous blogger if you are not already 😉 Cheers!

  11. It’s truly a nice and helpful piece of info. I am glad that you just shared this helpful information with us.
    Please keep us up to date like this. Thank you for sharing.

  12. Ꭻust wіsh to say your article is ass surprising. Τhe clarity fⲟr ʏoսr publish is
    just spectacular andd tһat i can assume you’re an expert on this subject.
    Fine along with your permission allow me tо seize youг fwed tо stay սⲣ to datе ᴡith imminent post.
    Тhanks one milli᧐n and pleɑse carry оn the
    gratifying work.

  13. Hey οutstanding website! Ⅾoes running a blog similar to this require
    a great deal of work? I’ve virtually no understanding of programming but I
    was hoping to start mʏ own blog in the near future.
    Anyhow, if you have any ideas or techniques for new blog owners please share.

    I understand this is off topic but I simply needed to ask.
    Thanks a lot!

  14. I’m amazed, I have to admit. Seldom do I come across a blog that’s both educative and interesting, and
    without a doubt, you have hit the nail on the head.

    The problem is an issue that too few folks are speaking intelligently about.
    I’m very happy that I came across this in my hunt for something regarding this.

  15. Pretty portion of content. I just stumbled upon your web site and
    in accession capital to claim that I get actually enjoyed account your blog posts.
    Anyway I will be subscribing in your feeds or even I success you get entry to persistently quickly.

  16. Oh my goodness! Awesome article dude! Thank you, However
    I am experiencing issues with your RSS. I don’t understand the reason why I can’t join it.

    Is there anybody having identical RSS issues?

    Anybody who knows the solution will you kindly respond? Thanx!!

  17. I precisely wished to thank you very much once more.
    I’m not certain the things I would’ve accomplished
    in the absence of the type of advice provided by you on such a subject.

    It was before a real traumatic scenario for me personally,
    nevertheless finding out a specialised approach you
    dealt with it forced me to leap for joy. I will be thankful for your guidance as well as pray you are aware of a powerful job you have
    been putting in instructing many people through the use of your web page.
    Probably you have never met any of us. http://nodakclassifieds.com/author/cmedaryl140/

Leave a Reply

Your email address will not be published. Required fields are marked *