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 912297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:21:23+00:00 2026-05-15T17:21:23+00:00

function insert() { var linkElement = document.getElementById(BackButton); var linkElementLnk = document.getElementById(BackButtonlnk); var loc_array =

  • 0
function insert()
{
    var linkElement = document.getElementById("BackButton");
    var linkElementLnk = document.getElementById("BackButtonlnk");
    var loc_array = document.location.href.split('/');

    if (loc_array[loc_array.length-3] == "m")
    {
        linkElementLink.style.display = 'none';
    }
    else if (loc_array[loc_array.length-2] == "maps"
          || loc_array[loc_array.length-3] == "maps"
          || loc_array[loc_array.length-2] == "stations"
          || loc_array[loc_array.length-3] == "stations" )
    {
        var newT = document.createTextNode("Stations & Maps");
    }
    else
    {
        var newT = document.createTextNode(unescape(capWords(loc_array[loc_array.length-3])));
    }
    linkElement.appendChild(newT);
}

and here is my HTML

<a id="BackButtonlnk" href="#" class="white" onClick="history.go(-1); return false;">
    <div id="BackButton1"></div>
    <div id="BackButton"></div>
    <div id="BackButton3"></div>
    </a>

The style.display none is not working and seems to just be breaking the script. Am I missing something?

  • 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-15T17:21:24+00:00Added an answer on May 15, 2026 at 5:21 pm

    check your spelling

    var linkElementLnk = document.getElementById("BackButtonlnk");
    ...
    linkElementLink.style.display = 'none';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my code: function insert(){ var loc_array = document.location.href.split('/'); var linkElement = document.getElementById(waBackButton);
I have the following code: var myModule = (function($) { // Insert code here
i am using this function to insert text into NicEdit, function insertAtCursor(editor, value){ var
I am wondering if wordpress' insert function also adds slashes to data. If it
I am Looking for a Function that insert Any form values to mysql ,
I have my controller, my function to insert into the database, and the form.
I'm using folding-mode in emacs and was trying to make a function to insert
here is myproblem, i want to make a php function to insert some random
I have function: char *zap(char *ar) { char pie[100] = INSERT INTO test (nazwa,
In my void union function I am unsure how to insert the data from

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.