Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 865705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:40:49+00:00 2026-05-15T09:40:49+00:00

Just a quickie.. If I set on an alert document.title to ALERT per say.

  • 0

Just a quickie..

If I set on an alert document.title to “ALERT” per say.
Then want to set it back afterwards is there an ezmode way to do this or will it be setting an ID on the link tags to set the title back to the ID. Note its an external script that is used on 20+ pages.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T09:40:50+00:00Added an answer on May 15, 2026 at 9:40 am

    Your question is a bit unclear because it starts talking about links and such. But you do specifically mention document.title, so…

    If you set document.title, there’s no way to set it back to its previous value without your saving the previous value and then restoring it, e.g.:

    // Setting the value originally, remember the previous value first:
    document.previousTitle = document.title;
    document.title = "Testing 1 2 3";
    
    // Restoring the previous title:
    document.title = document.previousTitle;
    document.previousTitle = undefined;
    

    (Ideally, instead of clearing the previousTitle with document.previousTitle = undefined;, we’d use delete document.previousTitle;, but sadly that breaks on IE because document isn’t really a JavaScript object, it just behaves very much like one, mostly.)

    You might think: Let’s go find the title element in the head and use its original content to restore the title. (That’s what I thought.) But no, setting document.title actually updates the content of the title element in the head, so that doesn’t work. You have to save the original somewhere else.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just to put it out there if I say the wrong lingo, I have
Just wondering is there any way to open a webpage in new tab inside
Just wondering if there is a faster way to split a file into N
Just a quickie before the weekend rolls in... I have a Method with the
Just curious about what would be the django way of achieving the following :
Just a quickie ... I have the following ID generator strategy for one of
Just wondering if there's any tutorials or ways to update jQuery scripts and functions.
Just a quickie.. How to derive the unixtime of nearest March or June? If
This is just an example but there are a bunch of similar scenarios sprinkled
Just need a simple jQuery to set the 2nd option in the select list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.