PDA

View Full Version : Frontpage push button hyperlinks don't work



springsi
09-19-2007, 02:45 AM
On a webpage created in Frontpage, I'm trying to insert hyperlinks in the form of push buttons. The hyperlinks are to html documents which open in a separate frame. The links work fine in Frontpage, but after I publish, they don't work at all.

Regular text hyperlinks work fine. But as soon as I change the INPUT type to "button," the link no longer functions after publishing to Bluehost.

Basically, to create the button, I'm replacing the hyperlinked TEXT with <INPUT type="button" value="TEXT">. (The rest of the html code for the hyperlink remains unchanged).

Again, the hyperlinked button appears and functions perfectly well within Frontpage. The button appears on the published webpage, but when you select it, nothing happens. The problem has something to do with the button itself, because everything works okay if the hyperlink runs from plain text.

Any thoughts?

felgall
11-26-2009, 12:41 AM
<INPUT type="button" value="TEXT">

The particular element needs to have javaScript attached to it if you want pressing the button to do anything.

If you want a button that behaves like a link then you replace

<a href="nextpage.htm">TEXT</a>

with

<form method="get" action="nextpage.htm"><div><input type="submit" value="TEXT"></div></form>