Solved

Button not taking me to the href

Posted on 2016-10-18
3
33 Views
Last Modified: 2016-10-18
<button type="button" class="btn btn-info btn-lg pull-center" href= "page2.php">2. By s EDI Files<br>(through web )</button>

Open in new window


I have this button but its not taking me to page2.php, im not sure why
0
Comment
Question by:Jasmine Ikhreishi
  • 2
3 Comments
 
LVL 54

Expert Comment

by:Julian Hansen
ID: 41848177
Buttons are not links - rather use a link and style it as a button i.e

<a class="btn btn-info btn-lg pull-center" href= "page2.php">2. By s EDI Files<br>(through web )</a>

Open in new window

0
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 500 total points
ID: 41848185
or use onclick
<button type="button" class="btn btn-info btn-lg pull-center" onclick="window.location.href='page2.php'">2. By s EDI Files<br>(through web )</button> 

Open in new window

0
 
LVL 54

Expert Comment

by:Julian Hansen
ID: 41848278
Why define an onlick for a button when a <a> looks exactly the same and does the same thing by default?
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question