Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HTML code for button to open another web page

Posted on 2007-06-15
7
Medium Priority
?
11,386 Views
Last Modified: 2012-06-27
What's wrong with this HTML code? I want to place a button on a form and have it link to this location:
www.realtimedj.com/cal/fl/powermixx.nsf/login.html


<img src="images/client_login_norm.png" alt="" height="40" width="119" border="0"><button name="client" value="www.realtimedj.com/cal/fl/powermixx.nsf/login.html" type="button">Client Login</button><br>
0
Comment
Question by:powermixx
7 Comments
 
LVL 7

Accepted Solution

by:
Yury Merezhkov earned 100 total points
ID: 19292516
<img src="images/client_login_norm.png" alt="" height="40" width="119" border="0">
<input name="client" onclick="location.href='http://www.realtimedj.com/cal/fl/powermixx.nsf/login.html'" type="button">Client Login</button><br>
0
 
LVL 10

Assisted Solution

by:geodan7
geodan7 earned 100 total points
ID: 19292532
<img src="images/client_login_norm.png" alt="" height="40" width="119" border="0"><button name="client" onclick="javascript:window.open('http://www.realtimedj.com/cal/fl/powermixx.nsf/login.html')" type="button">Client Login</button><br>


0
 
LVL 10

Expert Comment

by:geodan7
ID: 19292535
crap..too slow
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 19697819
Actually one needs to mix both your answers

The code
onclick="location.href='http://www.realtimedj.com/cal/fl/powermixx.nsf/login.html'"
is correct
window.open needs more than one parameter, the second being the name of the window and will open a new window which was not the question

However

<input name="client" .... type="button">Client Login</button><br>
is also wrong so the combined answer is EITHER

<button name="client"
onclick="location.href='http://www.realtimedj.com/cal/fl/powermixx.nsf/login.html'">Client Login</button><br>

or the more compatible

<input type="button" name="client"
onclick="location.href='http://www.realtimedj.com/cal/fl/powermixx.nsf/login.html'"
value="Client Login"><br>


Michel
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20166814
Forced accept.

Computer101
EE Admin
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

972 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