Including files in HTML

Results 1 to 3 of 3

Thread: Including files in HTML

  1. #1
    tabsquare Guest

    Default Including files in HTML

    I there a way to include simple html or txt files when loading an HTML page?<BR>&#060;!--#include virtual="somefile.txt"--&#062; will work, but only when running an ASP named page. <BR>I&#039;m trying to find a method to include a txt file that contains simple HTML. I saw that javascript can be included with<BR>&#060;script language="javascript" src="somefile.js"&#062;&#060;/script&#062;, so maybe there is a way to include also html in html pages<BR><BR>Thanls for any help

  2. #2
    Join Date
    Dec 1969

    Default RE: Including files in HTML

    Try naming your file myfile.shtml rather than myfile.html and using the same #include directive.

  3. #3
    tabsquare Guest

    Default RE: Including files in HTML

    It works great. Well, I would have prefeard .HTML, but This is good anyway. What can I say? Thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts