problem with .js library file
i got a problem with javascript code. here i m attaching a part of the code below:
function send(){
var a= "http://www.onlinevisitors.com/visitorsInfo.php?page=on&title='"+title+"'&browse='"+browse+"'&ip='"+ip+
"'&OSName='"+OSName+"'&browver='"+browver+"'";
}
window.onload= send;
i want to send the value of all the query variables to "visitorsinfo.php" and send them into MYSQL Database and also want to handle the value of "var a" returned by the query string. but this code does not work. is there any mistakes with this code?
All these codes is written in javascript library file.
if i write this code like this then it works very well:
function send(){
window.open("http://www.onlinevisitors.com/visitorsInfo.php?page=on&title='"+title+"'&browse='"+browse+"'&ip='"+ip+
"'&OSName='"+OSName+"'&browver='"+browver+"'");
}
window.onload= send;
if any anybody have a solution for it, plz write me
thanks in advance.