473,405 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

dynamically modify text within the <title> tag

Hi,

I would like to modify the text within an html title tag based upon a
value read from the registry (or the existence of a certain file).

For example, if a certain registry value is equal to 1 then the title
should be <title>blah blah App1</title> otherwise the title should be
<title>blah blah App2</title>.

Could someone recommend a way within the html page to do this?

Thanks very much,
Irene
Jul 20 '05 #1
2 2966
Quoth the raven named Irene:
Hi,

I would like to modify the text within an html title tag based upon
a value read from the registry (or the existence of a certain
file).
What will you do for a visitor that doesn't have a registry?
For example, if a certain registry value is equal to 1 then the
title should be <title>blah blah App1</title> otherwise the title
should be <title>blah blah App2</title>.

Could someone recommend a way within the html page to do this?
HTML is only markup; it can't /do/ anything. Server-side processing
has capabilities, but if your page tried to read my registry... well,
it couldn't.
Thanks very much, Irene


You're welcome.
--
-bts
-This space intentionally left blank.

Jul 20 '05 #2
ir********@yahoo.com (Irene) wrote in news:6ca93327.0312041410.d12c1d4
@posting.google.com:
Hi,

I would like to modify the text within an html title tag based upon a
value read from the registry (or the existence of a certain file).

For example, if a certain registry value is equal to 1 then the title
should be <title>blah blah App1</title> otherwise the title should be
<title>blah blah App2</title>.

Could someone recommend a way within the html page to do this?

Thanks very much,
Irene


I guess you might be able to do something with an ActiveX Control, But even
then it would be tricky. Might be easyer to program your own browser or
customize one for your needs.

http://www.mozilla.org/developer/

http://msdn.microsoft.com/workshop/b..._control_node_
entry.asp

--
News Updater, No scripts, No Database
http://www.xmlssoftware.com/NUpdater
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: mark | last post by:
IF I have something like this: <title><?php print($pagetitle); ?></title> <body> <?php include("folders/my_include.php"); ?> </body> </html> and my_include.php contains the value to the...
5
by: Info 3000 | last post by:
Hi there, Simple question, but headache ! I have a PHP Page like : <HTML> <HEAD> <TITLE>Sunny day !</TITLE> </HEAD>
1
by: Andreas Klemt | last post by:
Hello, I have in my strHtml a html page. so what is the fastest way (with XML Read?) to get the "myValue" between <title>myValue</title> Thanks, Andreas
8
by: DC | last post by:
In HTML page, I put: <html> <head> <title>Article: <asp:Label ID="lblHTMLTitle"></asp:Label> </title> .... In the code behind: ....
1
by: Carlo Marchesoni | last post by:
Some days ago I asked this forum whether it is possible to set up the <title> from the code-behind. A couple of poeple helped me and in fact it is quite ease: a) change the HTML, e.g.: <title...
1
by: Alan Silver | last post by:
Hello, I am just experimenting with master pages, and am trying to add a content placeholder in the <head> section, so that individual pages can set their own page title and meta tags. The...
13
by: guitarromantic | last post by:
Hey everyone. I'm editing some stuff I did last summer, trying to bugfix and improve stuff. One improvement (or an oversight of the original design) is adding dynamic <title> tags to my pages....
4
by: David Thielen | last post by:
Hi; If I am using master pages, how do I set the <title> and <meta name='description' content='my title'> for each page. Obviously each page will have a different title & description. --...
15
by: Steve B | last post by:
Is there a way to manipulate the <TITLEin the csharp code?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.