Results 1 to 5 of 5

Thread: Problems Inserting a VBScript into HTML Page?

  1. #1
    Join Date
    Jul 2006
    Posts
    289

    Problems Inserting a VBScript into HTML Page?

    Hi Friends,
    I am having problem while inserting scripts into a HTML page. I want to know the method that can insert script into HTML. I can use any scripts like JavaScript or VBScript. Please explain me how to insert a script into HTML Page? If possible please provide the sample of the coding using the same. No matter which script you are giving in example, from that I will get the idea of using the another script into HTML page.!
    Last edited by Viensterrr; 29-01-2010 at 04:59 PM.
    Signatures reduce available bandwidth

  2. #2
    Join Date
    Mar 2008
    Posts
    672

    Re: How to Insert a Script into HTML Page?

    Normally you add scripts to HTML pages to make them more dynamic and interactive. I have given you the coding for inserting a script into HTML Page, so that you can understand it more better. The script that I have used is VBScript. So you can adjust it accordingly, if you want another script. Here is coding for that :
    Code:
    <html>
    <body>
    
    <script type="text/vbscript">
    document.write("Hello World!")
    </script>
    
    </body>
    </html>
    A script in HTML is defined with the <script> tag. Note that you will have to use the type attribute to specify the scripting language.
    The script above will produce this output:
    Code:
    Hello World!

  3. #3
    Join Date
    Jul 2006
    Posts
    289

    Re: How to Insert a Script into HTML Page?

    Extremely Thanks 'Allan.d', for providing the help. Actually it worked for me. But when I am trying to run this script on my Office's system, its not working properly. I think that the browser is not supporting the <script> tag. You think that this is possible..??? You think that something is wrong with my browser.? Please help me soon as I have to work on that system.!
    Signatures reduce available bandwidth

  4. #4
    Join Date
    Mar 2008
    Posts
    349

    Re: How to Insert a Script into HTML Page?

    I think that there is something wrong with your browser. You have not mentioned which browser you are using.?! If you are using the Mozilla or other browser, other than the Internet Explorer, then I would like to suggest you to use the Internet Explorer. Many times it happens with the other browser due to the issue of the compatibility. And if this error is coming on Internet Explorer, then try to reinstall that browser. Install the updated version of the browser. Because I have used the script tag in number of machines, but I never got an issue mentioned by you. The script tag is definitely supported by Internet Browser but I don't know about the others. Hope that this methods will sort out your problem.

  5. #5
    Join Date
    Nov 2008
    Posts
    1,192

    Re: How to Insert a Script into HTML Page?

    Sometimes it happens that your browser doesn't recognize the <script> tag. Also sometimes it happens that it supports the <script> tag but do not support the script inside. In such scenario you would have to use the <noscript> tag to define an alternate text if a script is NOT executed. However, if a browser supports the script inside the <script> tag it will ignore the <noscript> tag.
    Code:
    <script type="text/vbscript">
    <!--
    document.write("Hello World!")
    '-->
    </script>
    <noscript>Your browser does not support VBScript!</noscript>
    Hope that this coding will help you.!

Similar Threads

  1. How to add VBScript code in a page
    By Aahlaadith in forum Software Development
    Replies: 6
    Last Post: 30-11-2010, 12:38 AM
  2. How to interaction VBScript and JScript in ASP page
    By Lawford in forum Software Development
    Replies: 5
    Last Post: 06-03-2010, 04:50 AM
  3. Php output as html page
    By Ebenezer in forum Software Development
    Replies: 3
    Last Post: 04-08-2009, 03:38 PM
  4. How to jump down in a Html page
    By Ron1 in forum Software Development
    Replies: 2
    Last Post: 13-06-2009, 06:14 PM
  5. How to embed a WMV into an html page
    By Ameyaa in forum Software Development
    Replies: 2
    Last Post: 19-05-2009, 10:37 AM

Tags for this Thread

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
  •  
Page generated in 1,714,007,566.57213 seconds with 16 queries