WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Tutorial : Simple Button with 
javascript alert on click

Tutorials

>

Tutorial Button

>

Tutorial : Simple Button with javascript alert on click


Button-02: Tutorial of the composant Button of the PHP FrameWork WebSite-PHP.

Tutorial : Simple Button with javascript alert on click:



Go back to tutorial of the componant Button



Source code

Source code


File: /pages/tutorials/button/button-02.php

<?php
class Button02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Simple Button with 
                                    javascript alert on click"
;
        
        
$this->render = new Button($this);
        
$this->render->setValue("Validate");
        
$this->render->onClickJs("alert('click');");
    }
}
?>


Go back to tutorial of the componant Button


Share

 


Copyright © 2009-2024 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker