/ Published in: JavaScript

This will get the arguments on the query string and put them into a handy array.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function getUrlVars() { var vars = {}; var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { vars[key] = value; }); return vars; }
URL: http://www.itsgotto.be/cv.php
Comments
