I want to catch this 'id' on "update.html" file in variable which I could use. I am using "electron".
a.href = "user.js?id ="+ element.id;
I want to catch this 'id' on "update.html" file in variable which I could use. I am using "electron".
a.href = "user.js?id ="+ element.id;
<script>
function getparams(url) {
var queryString = url ? url.split('?')[1] : window.location.search.slice(1);
var id = queryString.split('=')[1];
}
getparams();
</script>