A couple of pieces of code I have been trying to use today:
This one creates a button, which when clicked, opens a new page in the same window.
- <form><input onclick=”location.href=(‘https://www.abcdiamond.com’)” type=”button” value=”Details of link…” /></form>
This next one creates a button, which when clicked, opens a new page in a NEW window.
- <form><input onclick=”window.open(‘https://www.abcdiamond.com’)” type=”button” value=”Details of link…” />
This next one creates a button, which when clicked, closes the current window.
- <form method=”post”><input onclick=”window.close()” type=”button” value=”Close this Window” /></form>
To centre these buttons in a table, the codeĀ <center> must be placed after the codeĀ <form>.
- <form><p align=”center”><input onclick=”location.href=(‘https://www.abcdiamond.com’)” type=”button” value=”Details of link…” /></form>
154.1 - 867,987
↓ Scroll down for Comments ↓