HTML Button Question

They have: 4 posts

Joined: Feb 2002

hi all,

Just wondered if anyone knows of another way
of doing this:

The above puts a clickable button on the page but uses
javascript any other ideas of how to do the same but * NOT *
using javascript would be greatly appreciated!

Thanks in advance.

Steve

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

I don't think it's possible... you could always use an image surrounded by tags.

dk01's picture

He has: 516 posts

Joined: Mar 2002

You could make a form like:

<form id="myform" method="post" action="redirect.asp">
<input id="url" type="hidden" value="http://www.testsite.com" />
<input id="submitter" type="submit" value="Go to page" />
</form>
'

and then have the page redirect.asp use serverside opperations to redirect the user. This could be done in any serverside language I think. Do you have any serverside languages at your disposal?
-dk

P.S. Why do this?

Abhishek Reddy's picture

He has: 3,348 posts

Joined: Jul 2001

Hmm, didn't think of that. Server-side isn't necessary. Redirect can be achieved with a refresh.

edit:

<META HTTP-EQUIV="refresh" content="0;URL=http://www.site.com/otherpage.html">
'

They have: 4 posts

Joined: Feb 2002

Thanks all,

I needed this because I am writing a template for
submission to a site - unfortuantely it strips out
javascript or any other script for that matter. I was
looking at using the form method as I was trying to
use pure html without any images if possible. I may
have to go down the image route tho' as I need three
buttons side by side and the form method looks a bit bulky
on the code side.

Thanks again for all the help/advice.

Cheers

Steve

They have: 601 posts

Joined: Nov 2001

You could always just to do this:

<form name="form1" method="post" action="http://www.testwebsite.???">
  <input type="submit" name="Submit" value="More Info">
</form>
'

- wil

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.