Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

js get name of the page

Karamolegkos answered on January 30, 2023 Popularity 7/10 Helpfulness 5/10

Contents


More Related Answers

  • how to extract domain name of url of current page in javascript
  • get current page name in javascript
  • javascript get element by name
  • js dom get website name
  • get variable name javascript
  • javascript get domain name from string
  • javascript get name of element
  • js get name of variable
  • js get current function name
  • get name jquery
  • how to get input name in javascript
  • get domain name from url javascript
  • js get function by name
  • how to get input name value in javascript
  • name function in javascript
  • js get name of current hmlt file
  • extract the domain name from a url javascript

  • js get name of the page

    0

    var path = window.location.pathname;

    var page = path.split("/").pop();

    console.log( page );

    Popularity 7/10 Helpfulness 5/10 Language javascript
    Source: Grepper
    Tags: get javascript
    Link to this answer
    Share Copy Link
    Contributed on Jan 30 2023
    Karamolegkos
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.