• 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

Upload a file Using PHP and JavaScript

Reload parent page after submit in iframe

PHP date() with timezone?

Upload a file Using PHP and JavaScript

Remove product downloads section in woocommerce email notifications

Select option menu read from database and use it's values

Create a new line whenever an array value reaches more than 10 characters

Yii2: How do I debug console commands?

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

laravel 5.6 bulk inserting json data

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

Issue with laravel eloquent model property

Doctrine 2 mapping referencing unique key

How to insert Google Adsense Code in PHP script?

About Contact Privacy policy Terms and conditions