0

I have this on a SharePoint page:

<a href="#top"

onmouseover="document.getElementById('myimage6').src='LOCATION OF BUTTON IMAGE';"
onmouseout="document.getElementById('myimage6').src='LOCATION OF BUTTON IMAGE';" >

    <img src="LOCATION OF BUTTON IMAGE" id="myimage6" />

</a>

This works fine for a mouse over button, but of course when I click on it, it doesn't do anything. Can someone alter the above to make the button go to google.com or something?

I apologise for perhaps not using the correct code blocking, but it's quite unclear to me. I have removed markdown around the a and /a at the start and end.

Thanks.

C

3 Answers 3

1
href="#top"

needs to be

href="http://www.google.co.uk"
Sign up to request clarification or add additional context in comments.

1 Comment

@Bongs I have no idea what you are talking about. This is 100% correct
0

It's a hyperlink - you just put your desired target in the href attribute:

<a href="http://www.google.com">I go to google</a>

Comments

0

Do you mean like this?

<a href="http://www.google.com"> GO TO GOOGLE </a>

Comments

Your Answer

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.