JavaScript

Sending some data through URL for external html page by using the following method. Ex: this code has in page1.html page window.location=”http://192.168.1.70:81/project/page2.html?v1=”+dada1+”&v2=”+dada2; page2.html page should have the below function function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split(“&”); for (var i=0;i<vars.length;i++) { var pair = vars[i].split(“=”); if(pair[0] == variable){return pair[1];} } return(false); } …

Start reading How to Retrieving Query String Parameters in html Using javascript