登录 | 注册 | FAQ
Anonymous

Why isn't this working?

+ 发表回复

5 篇帖子 分页: 1 / 1


Why isn't this working?

SantoPerdido » 周六 1月 27, 2018 8:02 pm

Using GoDaddy web builder. The code itself renders as planned, but when you click the link, nothing happens. The button reacts,
but doesn't actually go to the page.
代码: 全选
<center>
<form>
<input style="width: 300px; padding: 20px; cursor: pointer; box-shadow: 6px 6px 5px; #999; -webkit-box-shadow: 6px 6px 5px #999; -moz-box-shadow: 6px 6px 5px #999; font-weight: bold; background: #228B22; color: #ffffff; border-radius: 10px; border: 1px solid #999; font-size: 150%;" type="button" value="Find Out More" onclick="window.location.href='http://elchoneteranch.com/contact-us' " />
</form></center>
头像

SantoPerdido

  • 帖子: 4
  • 注册: 周六 1月 27, 2018 7:59 pm

Re: Why isn't this working?

SantoPerdido » 周日 1月 28, 2018 12:41 am

Anyone have some insight?
头像

SantoPerdido

  • 帖子: 4
  • 注册: 周六 1月 27, 2018 7:59 pm

Re: Why isn't this working?

SantoPerdido » 周日 1月 28, 2018 12:41 am

Anyone have some insight?
头像

SantoPerdido

  • 帖子: 4
  • 注册: 周六 1月 27, 2018 7:59 pm

Re: Why isn't this working?

SantoPerdido » 周日 1月 28, 2018 11:07 pm

I thought this would be an eady one for the experts.
头像

SantoPerdido

  • 帖子: 4
  • 注册: 周六 1月 27, 2018 7:59 pm

Re: Why isn't this working?

taynguyenem » 周二 2月 13, 2018 8:40 am

SantoPerdido 写道:Using GoDaddy web builder. The code itself renders as planned, but when you click the link, nothing happens. The button reacts,
but doesn't actually go to the page.
代码: 全选
<center>
<form>
<input style="width: 300px; padding: 20px; cursor: pointer; box-shadow: 6px 6px 5px; #999; -webkit-box-shadow: 6px 6px 5px #999; -moz-box-shadow: 6px 6px 5px #999; font-weight: bold; background: #228B22; color: #ffffff; border-radius: 10px; border: 1px solid #999; font-size: 150%;" type="button" value="Find Out More" onclick="window.location.href='http://elchoneteranch.com/contact-us' " />
</form></center>


Hi
I think in the code [onclick="window.location.href='http://elchoneteranch.com/contact-us'] is problem.
You should have a javacript code individual.
Ex:
<script>
$('id or class').onclick(function(){window.location.href='http://elchoneteranch.com/contact-us'});
</script>

Hope help for you.
头像

taynguyenem

  • 帖子: 14
  • 注册: 周一 2月 05, 2018 3:28 pm
--
Preview site only Html: teamviewdownload.com, winrarfree.net


+ 发表回复

分页: 1 / 1