This Season
 

How to Link a Button to a URL - Actionscript and Flash

Link any HTML button you embed within a webpage to another page's URL so that users who click it arrive at a different Web page. Make sure the text you include within the button informs users that clicking it takes them to an external site to avoid confusion among your readers, who may or may not be looking to visit an external site. Code the button using HTML and basic JavaScript.

Related Searches:
    Difficulty:
    Moderately Easy

    Instructions

      • 1

        Log on to your Web host. Choose "File Manager." Click the PHP or HTML file of the page into which you want to insert the button with a link.

      • 2

        Scroll through the page until you reach the line where you want to add the button. Click your mouse within the document at exactly the point you want to insert the button.

      • 3

        Select and right-click the following code, then click "Copy."

        <FORM>

        <INPUT TYPE="BUTTON" VALUE="URL" ONCLICK="window.location.href='http://www.mysite.com'">

        </FORM>

        Paste the code within the HTML or PHP file of the document where you want the document to appear.

      • 4

        Replace mysite.com with the URL of the website where you want the button to link. Save the file and open the page in a new window or tab. Test the button to make sure it directs you to the correct page.

    Related Searches

    References

    Resources

    Read Next:

    Comments

    You May Also Like

    Follow eHow

    Related Ads