How can I get the url value after a question mark in javascript?
I want the following behaviour:
if value is yes then 10+2 else if value is no then
use javsacript and type:
location.search
use this code:
var a = location.href; var b = a.substring(a.indexOf("?")+1);