Question:

how to find the base URL address of a search?

by Guest8901  |  12 years, 8 month(s) ago

0 LIKES UnLike

I want to know the procedure to search the URL for base address using java script

 Tags: address, base, search, url

   Report

1 ANSWERS

  1. Guest9242
    Enter dis code in your java script to find base url
    function getUrl()
    {
    var pos = window.location.href.indexOf(window.location.host);
    return window.location.href.substring(pos+ window.location.host.length);
    }

Sign In or Sign Up now to answser this question!

Question Stats

Latest activity: 13 years, 2 month(s) ago.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.