Jump to content

Getting Requested Variable Value


sairfan1

Recommended Posts

get the url pathname:var path = window.location.pathname;split the path on the assignment operator:var assOp = path.split('=');Write the last value:document.write(assOp.length-1); //Or Get the second value: document.write(assOp[1]);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...