AJAX Example

Αξιολόγηση Χρήστη:  / 4

AJAX Example :

View source
<div id="myDiv"><h2>Let AJAX change this text</h2></div>
<button type="button" onclick="loadXMLDoc()">Change Content</button>

Next, add a <script> tag to the page's head section. The script section contains the loadXMLDoc() function:

View source
<script type="text/javascript">
function loadXMLDoc()
.... AJAX script goes here ...

You have no rights to post comments



© Developerpages