js get base url
var url = window.location.origin;
js get base url
var url = window.location.origin;
js get file location
var url,foldersAndFile,folders,folderpath,protocol,host,ourLocation;
url = window.location;
foldersAndFile = url.pathname.split("/");
folders = foldersAndFile.slice(0,foldersAndFile.length-1);
folderpath = folders.join("/");
protocol = url.protocol+"//";
host = url.host;
ourLocation=protocol+host+folderpath;
return ourLocation;// http://google.com/search
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us