how and whytest the article form articlewysiwyg and how to stare the article in website to the desc

how and whytest the article form articlewysiwyg and how to stare the article in website to the desc-sabiduria

The image above presents how will the variables passed in the link. There’s a question mark at the start, then the variable name – value pairs follow, separated by ampersands (&).

The downside of using the GET method is that it’s visible to the visitor and it affects the link of the page. If you don’t prefer this method, you can use the POST method, session Cookies or database to store the variables.

The JavaScript function below parses and returns the parameters.

function getUrlVars() {
    var vars = {};
    var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
        vars[key] = value;
    });
    return vars;
}

This is how you can pick a value from the variable array.

var number = getUrlVars()["x"];
var mytext = getUrlVars()["text"];

Okay but when the parameter is missing from the URL the value will be undefined. Here’s how to set a default value to the variable:

function getUrlParam(parameter, defaultvalue){
    var urlparameter = defaultvalue;
    if(window.location.href.indexOf(parameter) > -1){
        urlparameter = getUrlVars()[parameter];
        }
    return urlparameter;
}

Use it like this:

Write Article
Join Or Start Sabiduria With

We strongly believe everyone deserves to lead properous and quality life which is only possible by minding your own business. Join sabiduria and we help you to grow in life.