Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to add "script" tag to the html page?

how to add "script" tag to the html page?

Scheduled Pinned Locked Moved C / C++ / MFC
htmlcomtoolstutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    benben
    wrote on last edited by
    #1

    Hi: I make a programme based on IWebbrowser, and I want to insert a script to the htmlpage loaded by my programme.(the script maybe looks like: ... )How could I do? I find a article "http://www.codeguru.com/ieprogram/HtmlMemory.html" .It tells us how to modify the content of the SCRIPT,but didn't tell how to add to "SCRIPT" tag to the htmlpage. Thanks Benben

    D 1 Reply Last reply
    0
    • B benben

      Hi: I make a programme based on IWebbrowser, and I want to insert a script to the htmlpage loaded by my programme.(the script maybe looks like: ... )How could I do? I find a article "http://www.codeguru.com/ieprogram/HtmlMemory.html" .It tells us how to modify the content of the SCRIPT,but didn't tell how to add to "SCRIPT" tag to the htmlpage. Thanks Benben

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      You would add a <script> tag just like you would any other tag.


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      B 1 Reply Last reply
      0
      • D David Crow

        You would add a <script> tag just like you would any other tag.


        "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

        B Offline
        B Offline
        benben
        wrote on last edited by
        #3

        Thanks, Could you tell me how to add "script" tag? I try IHtmldocement2::createElement, but it doesn't work? Thanks Benben

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups