ah i see, thanks.
| The form could be on a page that is being included in other pages.
|
| --
| ==============================================
| Thomas A. Rowe (Microsoft MVP - FrontPage)
| ==============================================
| If you feel your current issue is a results of installing
| a Service Pack or security update, please contact
| Microsoft Product Support Services:
|
http://support.microsoft.com
| If the problem can be shown to have been caused by a
| security update, then there is usually no charge for the call.
| ==============================================
|
| > The only reason I can think of is this code can be used on several pages
without change. I assumed
| > the guy would know how to do
| > <input type="hidden" name="title" value="The title of this page">
| > So he wanted a script solution.
| >
| > I just answer the questions, not try to analyse them ;-)
| >
| > --
| > Cheers,
| > Jon
| > Microsoft MVP
| >
message
| > | >> I'm trying to imagine why you'd do this? It's not like the form
migrates
| >> from page to page, couldn't you (op) just put the page title in a
hidden
| >> field?
| >>
| >> curious.
| >>
| >>
| >> | >> | Hi,
| >> | stick a field on the page
| >> | <form......
| >> | <input type="hidden" name="title" value="">
| >> | </form>
| >> | and then below the script to populate it
| >> | <script type="text/javascript">
| >> | document.forms[0].title.value=document.title;
| >> | </script>
| >> |
| >> | --
| >> | Cheers,
| >> | Jon
| >> | Microsoft MVP
| >> |
| >> | | >> | > Ok. I give up. I've searched this site, the web, and my books, but
I
| >> just
| >> | > cannot figure this seemingly simple thing out. I want to populate
a
| >> | > hidden
| >> | > field in a form with the title of the page. Can you point me to the
| >> right
| >> | > syntax?
| >> |
| >> |
| >>
| >>
| >
| >
|
|