Results 1 to 2 of 2

Thread: <% call TITLE %>

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2003
    Location
    Australia
    Posts
    34

    <% call TITLE %>

    that is how i have seen it done before
    but i need to know
    is there a way with vb script to be able to get the title (html) of the page when it loads and put it in the document?
    ------------------------------------------
    Private Sub Problem()
    If resolved.Value = True Then
    MsgBox "Resolved Query", vbInformation, "Resolved"
    End If
    End Sub
    ------------------------------------------
    Public Sub aspnow()
    Me.DoingASPNow = true
    End Sub
    ------------------------------------------

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131
    No because the VBScript is executed server-side before any of the HTML is rendered.

    If you want to be able to access the title you'll need to declare it server-side and then you can reference it using VBScript and display it using HTML.

    E.g.

    <%
    Dim strTitle
    strTitle = "Welcome to My Page"
    %>
    <html>
    <head>
    <title><%= strTitle %></title>
    </head>

    etc.

    DJ

Posting Permissions

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



Click Here to Expand Forum to Full Width