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 : Link with JavaScript event

Tutorials

>

Tutorial Link

>

Tutorial : Link with JavaScript event


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

Tutorial : Link with JavaScript event:



Go back to tutorial of the componant Link



Source code

Source code


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

<?php
class Link02 extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Tutorial : Link with JavaScript event";
        
        
$link = new Link($this->getBaseLanguageURL(),
                            
Link::TARGET_BLANK__(HOME_LINK));
        
$link->onClickJs(new JavaScript("alert('click link');"));            
        
$this->render $link;
    }
}
?>


Go back to tutorial of the componant Link


Share

 


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