www.webdeveloper.com
Results 1 to 1 of 1

Thread: How to change title of page when the document is loaded

  1. #1
    Join Date
    Jul 2010
    Posts
    135

    How to change title of page when the document is loaded

    Hello,
    I want to add a middle dot into title when the page is loaded. The script should to be added to Firefox plugin GreaseMonkey:

    The original script:

    Code:
    window.addEventListener( 
      'load', 
      function (e) {
        document.title += " [loaded] "
     }, false);
    
    My try to test:
    
    window.addEventListener( 
      'load', 
      function (e) {
        document.title += " [loaded] "
     }, false);
    Muj upravený

    Code:
    window.addEventListener( 
      'load', 
      function (e) {
        document.title += " • "
        setTimeout(function() { 
          document.title.replace(" - "," • "); 
          document.title += " • "
          },1250);
     }, false);
    Nothing works for me.

    I want to add a dot when maps.google.com is loaded.
    Last edited by crazy boy; 05-27-2012 at 05:44 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles