Jump to content

  • Free consultations and support
  • Live chatClick Here for Live Chat
  • Call ico 1888-906-1888
    Phone support: Open

    Ready for your call :)

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

    Phone support: Closed

    We are back in: 1h 20m

    Our business hours:

    Mon — Fri, 2am — 8pm (EST)

    US & EU support teams

How to insert JavaScript into HTML

html insert javascript

  • Please log in to reply

#1 DesGuru


    Senior Member

  • Designer
  • 220 posts

Posted 06 November 2012 - 08:15 PM

Scripts in HTML should always be inserted between the <script> tag and the </script> tags.
Scripts can put either in the <body> or in the <head> section of any HTML page.
To insert any JavaScript into an HTML page, you have to use the <script> tag.
The <script> tag tells where the JavaScript begins and the </script> tag tells where the script finishes. The lines placed between the <script> and </script> tags contain the JavaScript.
alert("My JavaScript");
The browser will interpret the JavaScript code between the <script> and </script> tags and execute it.

#2 lorensius


    Junior Member

  • Designer
  • 11 posts

Posted 03 December 2012 - 05:53 AM

thanks for your post.realy helpful

Also tagged with one or more of these keywords: html, insert, javascript

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users