Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Retrieve url path


// If URL is http://www.somedomain.com/account/search?filter=a#top

window.location.pathname // /account/search

// For reference:

window.location.host     // www.somedomain.com (includes port if there is one)
window.location.hostname // www.somedomain.com
window.location.hash     // #top
window.location.href     // http://www.somedomain.com/account/search?filter=a#top
window.location.port     // (empty string)
window.location.protocol // http:
window.location.search   // ?filter=a  

Comment

PREVIOUS NEXT
Code Example
Csharp :: for loop unity 
Csharp :: unity quit code 
Csharp :: c# generate random date 
Csharp :: how to disable a gameObject unity c# 
Csharp :: left moust click unity 
Csharp :: clone gameobject unity c# 
Csharp :: c# open file dialog 
Csharp :: c# get directory of executable 
Csharp :: hello world c 
Csharp :: smooth rotation unity 
Csharp :: ping with c# 
Csharp :: init dictionary c# 
Csharp :: new Color from hex in unity 
Csharp :: c# string to sha256 
Csharp :: c# reverse list 
Csharp :: check if number is even or odd c# 
Csharp :: scenemanager c# 
Csharp :: c# get wifi ip address 
Csharp :: c# right click event 
Csharp :: how to write blank lines in c#.net 
Csharp :: set textbox colour to transparent c# 
Csharp :: backcolor c# hexadecimal 
Csharp :: unity c# redirect to webiste 
Csharp :: how to make a pause feautre in unity 
Csharp :: unity vector3.distance giving nonsensical values 
Csharp :: how to run a function as administrator in c# 
Csharp :: c# set file invisible 
Csharp :: unity how to rotate something to point to something else 
Csharp :: revitapi 
Csharp :: C# fix formatting 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =