Forum Moderators: open
Hope that makes sense ;)
Is it possible to create a link in JavaScript that does the same thing but without the frames?
Please let me know if you need further clarification.
Thanks!
Wes
<script type="text/javascript">
function sendIT(param){
var URL = "/pathto-cgi-bin/cgiscript.cgi?"+param; //change this path to your script
var request = false;
if (window.XMLHttpRequest){
request = new XMLHttpRequest();
}
else if (window.ActiveXObject){
try{
request = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e){
try{
request = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){}
}
}
request.open("GET", URL, true);
request.send(null);
}
</script>
anchor...
<a href="javascript:sendIT('your-commands');">something...</a>