AI’s Greatest Moments: Celebrating Artificial Intelligence Appreciation Day
Discover the most remarkable achievements in artificial intelligence as we honor AI’s Greatest Moments on Artificial Intelligence Appreciation Day.
Sometimes it may be needed that you need to give a close link in the popup you created. We have shared the function for how to close the popup in jQuery after submitting the form.
If you want to track conversion of contact us page by defining its Thank You page then also this function will help you.
If you want to redirect the page to somewhere else then use this function like this:
Core PHP
_redirectJs(‘dashboard.php’)
Codeigniter
_redirectJs(‘controller/function’) OR
if you have defined url in route file
_redirectJs(‘dashboard’)
jquery function is as follows:
function _redirectJs($tourl = ”) {
if ($tourl == ”) {
$tourl = ‘home’;
}
$script = ‘<script type=”text/java
script”>
var local = location.pathname.split(“/”);
local.pop(); // remove the filename
local.push(\”.$tourl.’\’);
local = location.protocol+”//”+location.hostname+””+local.join(“/”);
top.location.href = local;
</script>
‘;
echo $script;
//code
}
Jul 16th, 2024
Discover the most remarkable achievements in artificial intelligence as we honor AI’s Greatest Moments on Artificial Intelligence Appreciation Day.
Jul 11th, 2024
Discover the best methods for adding your blogs to your GitHub profile. Enhance your visibility and engage more followers. Click for detailed guide.
Jul 2nd, 2024
Discover the importance of responsive design in React and learn the best practices to enhance user experience across different devices.