Re: Javascript to read a <tag>

From: Jon (js_at_roksteady.net)
Date: 03/08/04


Date: Mon, 8 Mar 2004 14:52:06 -0000

Hi,
how about
document.write('<h1>' + document.title + '<h1>')

Jon
Microsoft MVP - FP

Duncan wrote:
> Hi there,
>
> I'm making a website to put up on my school's server,
> they don't support server-side scripting and their
> Frontpage support is lacking so I want to use JavaScript
> mostly. But this is what I want to do in JavaScript:
>
> Have a table layout like | 1 | where cell one spans
> |2 | 3|
> two columns and is the title for the page. My question
> is, is it possible to have a JavaScript script read the
> <title> tag and then write in its contents to the cell as
> a header (<h1>) tag? So it would write something like
> <h1>contents of <title> tag</h1>. I would use Frontpage's
> pagebanner feature, but I'd like to comply to W3C
> standards, and editing Frontpage's sourcecode after
> making a page is not pretty I've found in previous
> versions.
>
> Thanks



Relevant Pages

  • Re: web page on local server
    ... Javascript is now going way out of my depth sorry! ... dependent upon FPSE being installed on the server. ... Now i do not plan to publish this website i have developed i have used ... Every item works as it should like a web apge ...
    (microsoft.public.publisher.webdesign)
  • Re: Question: broadcast messages?
    ... You could have a timer going off in javascript, that makes a call to the ... server via XMLHTTP every X seconds, checking if there are any messages to ... This is an intranet asp.net website. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: So wierd - web pages
    ... > the files over to the customers server, ... > However the only thing different is that I created a new website instead ... > All the pages load up fine, but the javascript fails to start. ... Tom Kaminski IIS MVP ...
    (microsoft.public.inetserver.iis)
  • Javascript work with Sp3?
    ... Ive designed a website with Javascript and it works fine with my Windows ... However on my Windows 2000 server some parts of javascript ...
    (microsoft.public.win2000.windows_update)
  • Enable Bandwidth throttling programmatically using WMI in C#
    ... Does anybody has the script to add Bandwidth throttling and Website ... public string IPAddress ... /// Gets or sets the name of the IIS server that site ... ManagementObject ...
    (microsoft.public.win32.programmer.wmi)