buttons not doing anything when clicked?

hoping someone can help me figure out why the button codes arenot working for my site - see below

<input class="btn btn-ghost right" type="button" value="Get early access" href="http://sayhello.xxxxx.co/">

          <input class="btn btn-red" type="button" value="Download" href="http://sayhelloe.xxxxx.co/twitter.xls">
finnstoneAsked:
Who is Participating?
 
Rainer JeschorCommented:
Hi,
what do you expect to happen?
Are you using any kind of Javascript framework on your page?
An input type button does normally not have an attribute of href.

If you want to change the url of the current page, then use this:
<input class="btn btn-ghost right" type="button" value="Get early access" onclick="window.location='http://sayhello.xxxxx.co/';" >

          <input class="btn btn-red" type="button" value="Download" onclick="window.location='http://sayhelloe.xxxxx.co/twitter.xls';">

Open in new window


HTH
Rainer
0
 
finnstoneAuthor Commented:
i would like the site to change , without opening a new indow

just this
  <script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
0
 
Rainer JeschorCommented:
Hi,
then my provided solution should work.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
finnstoneAuthor Commented:
that didnt work, while it fixed the error, made button look weird...

also, i actually would like to make it open a small window instead of loading the url in the full window...could you help there?
0
 
finnstoneAuthor Commented:
0
 
finnstoneAuthor Commented:
my mistake , fixed it. thx!

but could you also tell me how to open a little window instead of the same window that site is loaded in.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.