1

I have a file .html on my computer (Local) i just want to have a Button or a HyperLink.

So I do something Like this:

Hyperlink:

<a href="www.google.com" target="_blank">test</a>

Button:

<button href="www.google.com">test</button>

But it don't work because this open Url like: file:///C:/Users/Cyril/Documents/visual%20studio%202013/Projects/MyProject/www.google.com

How can i do to open just www.google.com ?

Thank's for help

asked Jul 24, 2015 at 9:35
1
  • add http:// infront of www.google.com Commented Jul 24, 2015 at 9:40

1 Answer 1

1

You're missing http before the url address in your src attribute. Rather than www.google.com you should have http://www.google.com

Correct hyperlink:

<a href="http://www.google.com" target="_blank">test</a>
answered Jul 24, 2015 at 9:37
Sign up to request clarification or add additional context in comments.

2 Comments

Glad you found my answer helpful. It would be great if you could accept my answer if it solves your problem :)
I will do it, need to wait 7min !

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.