• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

javascript html popup window

phpjavascriptjquery


PHP Snippet 1:

document.getElementById('the_button_id').addEventListener('click', function() {
    window.open('page_to_open', '');
}, false);

PHP Snippet 2:

$("#idofyourcurrentlist").hide("slide", { direction: "left" }, 1000);
$("#idofyournextlist").delay(1000).show("slide",{direction: "right"}, 1000);

PHP Snippet 3:

var getdata = "something that  u need";
var datatopost = "yourneed=" + getdata;
$.post("tophphandling.php",datatopost,function(success){
    if(success){
       alert("Thank you.");
    }
});

Related Snippets

How to loop a tree array with unknown depth and get array blocks?

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

Warning: sqlite_query() expects parameter 1 to be resource, string given

Laravel 5 issue with wherePivot

Respond with status code 401 on authentication failure using Laravel and Passport?

Can I write PHP code across multiple lines per statement?

Display Link Title Instead of URL in XSL

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

Toggle between a textbox and a select using PHP

Split array into 4-element chunks then implode into strings

Google Calendar API batch request PHP

Getting values for an enum?

Xdebug 3 not showing in phpinfo on m1 Monterey

codeigniter 4 running error first time with xampp

Can't call javascript alert alertify library from PHP

About Contact Privacy policy Terms and conditions