I need to extract a passed parameter (called tid) (via URL) and put it in a hidden field (easy: 'document.frmCorp.misc.val
ue = extracted_url_param_tid;')
But the extraction part can be tricky... since possible URLs could be - and exceptions could arise...
var our_url = window.location.search; //will put the URL in a variable, we can work with to extract the value of tid=xxxx
What's the best and most widely supported/industry standard procedure for exception?
(Actual code that examples a practical working solution is obviously the best solution...)
I have cooked up a 'home' solution, but and will post it regardlessly later to admire or laugh at, but am looking for professional answer/solution...