Hi everyone. I need to make a php page that will not atke the user away from the page they click on. It will also have to perform some operations and then open a web page with set height, width etc.
So I was thinking I might be able to do it as a faux javascript like so:
header("Content-Type: application/x-javascript\n");
print("<script language = \"javascript\">\n");
print("alert(\"hello\");");
print("</script>\n");
This code doesn't work with or without the <script> tag in it. Anyone have any idea if this is possible and if so, how?
Thanks,
Gerard