Re: Javascript to read a <tag>
From: Jon (js_at_roksteady.net)
Date: 03/08/04
- Next message: JDR: "RE: Image in top table, effects width of table below."
- Previous message: Jon: "Re: Deleting files with ASP"
- In reply to: Duncan: "Javascript to read a <tag>"
- Next in thread: Duncan: "Re: Javascript to read a <tag>"
- Reply: Duncan: "Re: Javascript to read a <tag>"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: JDR: "RE: Image in top table, effects width of table below."
- Previous message: Jon: "Re: Deleting files with ASP"
- In reply to: Duncan: "Javascript to read a <tag>"
- Next in thread: Duncan: "Re: Javascript to read a <tag>"
- Reply: Duncan: "Re: Javascript to read a <tag>"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|