Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. MahendraMahey

    Can you retrieve a page title and assign it to a variable?

    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
  2. MahendraMahey

    Can you retrieve a page title and assign it to a variable?

    Does anyone know if you can assign the page title to a variable? This doesn't seem possible: title=document.title
  3. MahendraMahey

    Can you retrieve a page title and assign it to a variable?

    This is following on from a previous thread. Is it possible to assign the page title to a variable?
  4. MahendraMahey

    Using the Page Title to make links active or not!

    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...
  5. MahendraMahey

    Using the Page Title to make links active or not!

    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...
  6. MahendraMahey

    Using the Page Title to make links active or not!

    Sorry code should read: Then in each cell there will be a conditional statement. The Conditional statement will read something like this: If title=&quot;Regional News&quot; then write 'Regional' Else write &quot;<A HREF=&quot;regional.htm&quot;>Regional</A> In the next cell there will be...
  7. MahendraMahey

    Using the Page Title to make links active or not!

    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...
  8. MahendraMahey

    Using the Page Title to save time in Navigation

    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?
  9. MahendraMahey

    Using the Page Title to save time in Navigation

    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...
  10. MahendraMahey

    Using the Page Title to make links active or not!

    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...
  11. MahendraMahey

    Putting Web page title into Email subject

    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=&quot;X&quot; then write &quot;international&quot; else write &quot;<A HREF=&quot;link.htm&quot;>international</A>...
  12. MahendraMahey

    Using the Page Title to make links active or not!

    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...
  13. MahendraMahey

    Putting Web page title into Email subject

    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...

Part and Inventory Search

Back
Top