How can we call Php functions with in the JavaScript If-else condition.
For Example,
if (top == self) {
// not in any kind of frame
} else {
// in a frame
// calling php function
}
</script>
Here, PHP exit() function calling for both if and else conditions. I need to call that function for only in else part.
Please advise me.
Thanks. Prabhu
$.get("exit.php")- But that will accomplish little for your running Javascript code. That's intended to fetch new data, not for mixing PHP and JS control flow.