Solved

Button not taking me to the href

Posted on 2016-10-18
3
29 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 52

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 52

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

939 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

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now