Need help coding this button to link to a URL

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
User avatar
rudy
Posts: 3
Joined: Mon Jul 16, 2012 6:01 pm

Need help coding this button to link to a URL

Post by rudy »

I'm doing something wrong here and I can't for the life of me see where. Could use some help.

<a href="http://www.mydomain.com" target="_blank"><input type="button" name="ckick" value="Login" /></a>
User avatar
Nikolajs
Blumentals Software Developer
Posts: 108
Joined: Mon Sep 19, 2011 8:28 am

Re: Need help coding this button to link to a URL

Post by Nikolajs »

You can try:

Code: Select all

<input type="button" onclick="window.open('http://www.mydomain.com', '_blank');" value="Click" />
As you can see using <input> tag requires some JavaScript.

Another option is to use <a> tag. If you want it to give button look & feel, use CSS.

Code: Select all

<a href="http://www.mydomain.com" target="_blank">Click</a>
Nikolay Dutchuk
Blumentals Software
Post Reply