0

Hello,
I am again asking for help. Is it possible to get the text
from the elent ID into another place in the page.
For example, is it possible using asp to get page title from <p id='title'> in the code below?

<HTML>
<HEAD>
<TITLE> nothing </TITLE>
</HEAD>
<BODY>
<p id='title'>Wanted Title</p>
<p>Page content text about some stuff</p>
</BODY>
</HTML>

Thank you

2
Contributors
1
Reply
2
Views
10 Years
Discussion Span
Last Post by SheSaidImaPregy
0

Only way to do this is to include a piece of coding at the top of the page like below.

<%
Dim strPageTitle = "Wanted Titled"
%>

Now you have to reference it inside the page at the title section and your other title spot in your paragraph with:

<%= strPageTitle %>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.