I have tried doing this but it doesn't work, may be I am doing something wrong. I am using Vbscript by the way and thank you for your response on the other forum.
Could you give us an example with code that works.
Thanks
Thanks for this.
Will try it and get back to you.
By the way if this works it is a great timesaver in creating accessible websites as the recommendation is that when desinging websites for blind users you should always ensure that once they have clicked on a page that and got to it, the link...
I should point out that EACH CELL has DIFFERENT navigational element in it:
e.g.
Cell 1 - Regional
Cell 2 - National
Cell 3 - International
And so on...
Sorry code should read:
Then in each cell there will be a conditional statement. The Conditional statement will read something like this:
If title="Regional News" then write 'Regional'
Else write "<A HREF="regional.htm">Regional</A>
In the next cell there will be...
Almost!
I have many cells in which I want to put navigation links, e.g. Cell 1, Regional, National, International
What I want is:
assign a variable to contain the value of the page title (I think this is document.title).
e.g. title=document.title
Then in each cell there will be a...
Thanks for this but how I am able to get the value of the page title into a strTitle. Could I assign document.title to it? If so, could you show me how?
I am a newbie to vbscript and asp but let me try and explain what I want to do.
I want use the Page Title, assign it to a variable and then use it to display a navigation link as active or not.
For example:
If the page title is 'International news'
There are links on the page that say...
Thanks for this but what I need is this
1. Get the document title
2. Assign it to a variable
3. In a table cell insert the code that would do the following:
If the document title corresponds to the document title for the page of the link then make that link inactive else keep it active e.g...
OK - sorry to be a bit thick (I am a newbie to VBScript), but how would I assign this to a variable and then do the following in VBScript:
document.title = variable
If variable="X" then write "international" else
write "<A HREF="link.htm">international</A>...
I am working in vbscript and I want use the Page Title, assign it to a variable and then use it to display a navigation link as active or not.
For example:
<TITLE>International<TITLE>
Links
Home Regional National International
Code should be something like this:
If...
This is sort of related.
I am working in vbscript and I want use the Page Title, assign it to a variable and then use it to display a navigation link as active or not.
For example:
<TITLE>International<TITLE>
Links
Home Regional National International
Code should be something like this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.