get value from url
// view.jsp?id=101
let queryString = window.location.search;
let urlParams = new URLSearchParams(queryString);
let opportunity_id = urlParams.get('id');
get value from url
// view.jsp?id=101
let queryString = window.location.search;
let urlParams = new URLSearchParams(queryString);
let opportunity_id = urlParams.get('id');
get url from string javascript
function Purify(text) {
var urlRegex = /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/;
return text.replace(urlRegex, function (url) {
return '<a class="text-blurple" target="_blank" href="' + url + '">' + url + '</a>';
})
}
get url from string javascript
var testUrl = variable.match(/'(http:[^\s]+)'/)
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