We accept safe and secure Credit Card and PayPal Payments.
 
Perl Scripts

All Count
Attachment Mailer
Perl Scripts Build A FAQ Plus
Perl Scripts Clock In Center
eBackup Automated
Easy Poll
eSurvey
Fetch a File
Form Maker
Mailing List Server
MySQL Mate
PDF Creation
QCart
Quick Fix
Quote of the day
Speed Search
Task Manager
Traffic Pack
Upload Plus
Upload Gold
Upload Pro
Website Manager

 
Free Perl Downloads

Free Perl Scripts Main Page
Free Perl Scripts 404 Alerter
AccessLog Viewer
Build A FAQ
PHP Scripts eBackup
Free PHP Scripts ErrorLog Viewer
eVars - Server Info
HT Pass Creator
Upload Lite
Website Manager

 
JavaScripts

Free Java Scripts Alert Boxes
Free JavaScripts Browser Sniffer
Check email
Generators
Slide Show
Sudoku
Window Maker
More...

 
Extra Utilities

ASP Scripts Ascii Codes
Free ASP Scripts Color Picker
Font Finder
HT Pass Creator
Meta Cloak
Meta Magic
Pano Zooms
SlideShow
Server Size

 
Online Tutorials

Free HTML Scripts Glossary
Free HTML Scripts HTML
JavaScript
MySQL
SSI
Build Traffic
Other

 
Miscellaneous

About Us
Graphics
Testimonials
Installations
Latest versions

 
Hawk Eye in Tennis

Should Hawk Eye replace linesmen and lineswomen at all tennis tournaments?







 
View all Polls

Run Polls on your site

Run your own Surveys

 
Store Download FAQs Contact Us Support Programming Policies  
Buttons     List of Categories

  1. How do I create a simple back button?

  2. How do I create a simple forward button?

  3. How do I send the user futher back or forward?

  4. How do I call or execute a function using a button?

  5. How does a button differ from a submit button?







  1. How do I create a simple back button?

    Back buttons send the user to the last page recorded in the history list. This acts just like the browser's back button.

    <form>
    <input type="Button" value="Back" onclick="history.back()">
    </form>


    Top of Page



  2. How do I create a simple forward button?

    The same way you would create a back button, except you use the forward method.

    <form>
    <input type="Button" value="Forward" onclick="history.forward()">
    </form>

    The button above is the equivalent of pressing the browser's forward button.

    Top of Page



  3. How do I send the user futher back or forward?

    By using the go() method. To navigate further back or forward, enter the number of pages between the paranthesis. Use a "minus" sign to move back, use any number (without a minus sign) to move forward that number of pages.

    <form>
    <input type="Button" value="Back" onclick="history.go(-2)">
    </form>


    Top of Page



  4. How do I call or execute a function using a button?

    First you write your function. Then you execute it using an event handler such as onClick or onMouseover. Let's say you have a function named "calculate()" and you want that function executed when a user clicks your button. You could achieve this using :

    <form>
    <input type="Button" value="Get Total" onclick="calculate()">
    </form>


    Top of Page



  5. How does a button differ from a submit button?

    You define a button type using the type attribute of an input tag. If you specify that it should be a button, as in <input type="Button">, the button then needs some functionality attached to it. Whereas if you specify that it should be a Submit button, as in <input type="Submit">, it will submit the form it resides within, when clicked. The URL in the form's actions is then called by the browser, which is similar to a hyper link excpet you can also tell the browser how to send the information to the server.

    Top of Page


Speed Search our site
Plesk Hosting
Linux servers with Plesk Control Panel, cgi-bin, crontab manager, Mysql, PHP and ASP.

Survey Software
Create unlimited web based surveys on your website from your website

Discounted Scripts
Subscribe to our periodial newsletter to receive special offers.

Bathroom Hygiene
How often do you thoroughly clean your bathroom?








View all Polls

Run Polls just like this one on your website!


About us | Contact us | Script FAQs | Script Support | Website Hosting | Our Policies | Store | Testimonials
Subscribers log in here. Subscribe to our periodical newsletter for special offers on commercial scripts, hosting, exciting business opportunities, and industry news and events. Our Mailing List Software is powered by Consolidator    
HTML Plain text
©1999 - 2015 All content Copyright PerlScriptsJavaScripts.com Proudly hosted by LinuxHostingPlans.com