开发者

How do I create a div button without javascript?

I have a button image made out of divs. When I click this I want to post back and redirect. What is the best way to do this and can it be done without usi开发者_开发技巧ng javascript?


If you want to trigger the post back from the 'div' click then you'll need to use JavaScript. See this question for further information.


Use an input element of type 'submit'...

<input type="submit" value="Submit" />

Then redirect on the server (it will vary depending on the programming language being used)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜