Click to See Complete Forum and Search --> : Programming a button.click


emmanuellamy
01-12-2003, 10:22 PM
Hi there,

How do I program a button click to link the to a url which can be a common file on a page? I thought that assigning a Location.href to the Input tag would do the the job. But, obiously, I am mispelling something. Please give me a hand. TIA.

Emmanuel

Zach Elfers
01-12-2003, 10:36 PM
It should work by doing it like this:

<input type="button" onClick="self.location.href='page.html';" value="Click">

emmanuellamy
01-12-2003, 10:49 PM
Hi Zach,

I think it would be inconsiderate, if I don't show my appreciation by saying "Thank You". It works, as you said. You're the man.

Emmanuel