How do I insert a link in an html webpage which is the name of the file itself?

Posted on 2014-08-20
Last Modified: 2014-08-30
I need an HTML command which when inserted in an HTML webpage, it will pick up the name of the html file and it links to it as well.


A web page called NewInformation.html.
When I open NewInformation.html,   I want somewhere in the page the NewInfomation to show and when you click on it it must link to itself.
Question by:100questions
    LVL 58

    Expert Comment

    Just add a blank link

    <a href="">Some Link</a>

    Author Comment

    This doe not work, it brings you to the index file
    LVL 58

    Accepted Solution

    <a href="#">Some Link</a> 

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    The viewer will learn how to count occurrences of each item in an array.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now