Results 1 to 16 of 16
  1. #1
    Join Date
    Nov 2007
    Posts
    552
    Rep Power
    0

    Default javascript and html

    can anyone suggest me how can we add javascript code to html.. i am very much interested in creating websites with javascript .... please do help me out with us.. i really seek your help guys..

    regards
    jagan

  2. #2
    Join Date
    Dec 2007
    Posts
    3,333
    Rep Power
    0

    Default

    what is javascritp. where do you use that. i will like to learn the uses of that javascript too.

  3. #3
    Join Date
    Dec 2007
    Posts
    768
    Rep Power
    0

    Default Re: javascript and html

    Quote Originally Posted by therealdeal
    can anyone suggest me how can we add javascript code to html.. i am very much interested in creating websites with javascript .... please do help me out with us.. i really seek your help guys..

    regards
    jagan
    yes javascript is very useful for programming websites.
    but tell me where can i practice writing java scripts. i want to work practically while learning it

  4. #4
    Join Date
    Dec 2007
    Posts
    3,333
    Rep Power
    0

    Default

    is javascript really useful in programming websites well i think that we have that javascript option in the blog. you just have to look for a word javascript/html.

  5. #5
    Join Date
    Nov 2007
    Location
    India
    Posts
    2,295
    Rep Power
    0

    Default

    javascript is very useful for programming websites. in blogger can u use it.

  6. #6
    Join Date
    May 2008
    Posts
    1,147
    Rep Power
    0

    Default

    But I guess you can hack a website too using javascript if javascript is used by that site.

  7. #7
    alec11 is offline Veteran Member I was here more times.
    Join Date
    Feb 2008
    Posts
    1,920
    Rep Power
    0

    Default

    javascript into HTML, never heard that.
    What do you want to make with that?
    I think Javascript is different with HTML

  8. #8
    Join Date
    May 2008
    Posts
    1,147
    Rep Power
    0

    Default

    Quote Originally Posted by alec11
    javascript into HTML, never heard that.
    What do you want to make with that?
    I think Javascript is different with HTML
    Well you can insert javascript into HTML but the javascript may have flaws if not programmed properly.

  9. #9
    Join Date
    Sep 2008
    Location
    India
    Posts
    35
    Rep Power
    0

    Default

    There are two ways you can javascript in to HTML.

    1. Write .js file and write all the java script function and call the function from your html files.
    2. You can write java script in your own HTML files itself.This is difficult to maintain if HTML file is big.

    eg

    <html>
    <head>
    <script>
    function MyFunction()
    {
    alert("Hello World!");
    }
    </script>
    </head>

    <body>
    <form>
    <input type="button" value="Click me!"
    onclick="MyFunction()" >
    </form>
    </body>
    </html>

    the above simple example when you click the Click me buttion you will see alert of the Hello World

  10. #10
    Join Date
    Feb 2009
    Posts
    38
    Rep Power
    0

    Default

    It is real tough task if you have good idea of html and javscipt then only you can do the combination.

  11. #11
    Join Date
    Sep 2008
    Location
    Kolkata, India
    Posts
    985
    Rep Power
    0

    Default

    You can insert small javascripts in html file to perform certain function. Pl find 'fg-a.com' (insert a www before this text) for some free javascript codes. You will find this from the menu which is written in the left side.

  12. #12
    Join Date
    Feb 2009
    Location
    India
    Posts
    394
    Rep Power
    0

    Default Re: javascript and html

    Quote Originally Posted by therealdeal
    can anyone suggest me how can we add javascript code to html.. i am very much interested in creating websites with javascript .... please do help me out with us.. i really seek your help guys..

    regards
    jagan

    If you know the HTML then in that you will find <head> </head> tag so in between you have to add Java script in below format.

    <head>
    <script language="Javascript" type="text/javascript">
    <!--
    // Your java script will goes here
    //-->
    </script>
    </head>


    I hope this will help you to add you and use Java script in yout HTML page. Good luck!

  13. #13
    Join Date
    Apr 2009
    Posts
    553
    Rep Power
    0

    Default Message

    Here is the link that i think will answer your question.
    http://www.dummies.com/how-to/conten...-and-html.html

  14. #14
    Join Date
    May 2009
    Location
    India
    Posts
    124
    Rep Power
    0

    Default

    See the Example of a simple Program in both HTML and JavaScript
    Program in html:-

    <HTML>
    <HEAD>
    <title>HTML to JavaScript</title>
    </head>
    <BODY>
    HTML to JavaScript Converter
    </BODY>
    </HTML>

    Program in JavaScript:-

    <script language="JavaScript">
    <!--
    document.writeln("<HTML>");
    document.writeln("<HEAD>");
    document.writeln("<title>HTML to JavaScript</title>");
    document.writeln("</head>");
    document.writeln("<BODY>");
    document.writeln("HTML to JavaScript Converter");
    document.writeln("</BODY>");
    document.writeln("</HTML>");
    //-->
    </script>

    Hope this will help you.......

  15. #15
    Join Date
    Mar 2009
    Posts
    899
    Rep Power
    0

    Default

    To design a web site, Java script is not needed but you can really use that to make the page more interactive and dynamic

  16. #16
    Join Date
    Oct 2008
    Posts
    1,267
    Rep Power
    0

    Default

    Quote Originally Posted by sekhar4m92
    See the Example of a simple Program in both HTML and JavaScript
    Program in html:-

    <HTML>
    <HEAD>
    <title>HTML to JavaScript</title>
    </head>
    <BODY>
    HTML to JavaScript Converter
    </BODY>
    </HTML>

    Program in JavaScript:-

    <script language="JavaScript">
    <!--
    document.writeln("<HTML>");
    document.writeln("<HEAD>");
    document.writeln("<title>HTML to JavaScript</title>");
    document.writeln("</head>");
    document.writeln("<BODY>");
    document.writeln("HTML to JavaScript Converter");
    document.writeln("</BODY>");
    document.writeln("</HTML>");
    //-->
    </script>

    Hope this will help you.......
    Hi sekhar nice yaar, i like it you have explained it in professional way and a layman can understand from your example that what is html and what is javascript? and few things i want to add here java script is an auxiliary script means its not mandatory for every site but its the most powerful script and according to me its the king of script you can do anything with java and the client side system is handled by this java script only, any kind of validation whether its login validation, credit card validation or any kind of validation done by java script only.

    Sekhar while providing this script do one thing , in text box above u will find one button called "Code" just use that option because it will help to see any kind of code in well manage and another use of the code button is, in forum's back end we run it from BBcode when we write any code like javascript or any kind of code without using the code option it will put little effect on the BBCode but your code is not harmful at all but when you want to add any code to show any example use the "Code" option. You Did a gr8 job, You, alensot, revvv1234, microsoft, Danega you guys are rocking and i like to read your all technical answers so keep contributing your skill here.
    Thanks,
    Bye.

Similar Threads

  1. What is HTML?
    By lennondevid in forum Website Design
    Replies: 6
    Last Post: 27-02-16, 08:21
  2. Jsp vs html - which one u use.. ?
    By paramita0101 in forum Webmaster newbie help
    Replies: 10
    Last Post: 27-08-12, 12:26
  3. Replies: 28
    Last Post: 14-06-09, 10:03
  4. Is it safe to put javascript to our site?
    By alec11 in forum Scripts
    Replies: 20
    Last Post: 04-03-09, 20:53
  5. need help with html
    By cj monaco in forum Website Design
    Replies: 14
    Last Post: 12-10-08, 20:18

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
webmaster forums webmaster resource forum webmaster money forums