Home button code not working!

  • 1
  • Question
  • Updated 7 years ago
  • Answered
Hi
I have got code for a button to return to home page I have changed the references to index but it still isn't working - any advice anyone?
Regards
Penny
This is the code I'm using

function gohome(){
if (document.layers)
window.index()
else if (document.all)
window.location="about:index"
else
alert("You need NS 4+ or IE 4+ to go back home!")
}
Photo of Penny Taylor

Penny Taylor

  • 17 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of Emmy

Emmy

  • 5892 Posts
  • 299 Reply Likes
Hello Penny,
Unfortunately this is not my area of specialty so I am going to ask our HTML team to take a look. This is a specialized area of our team so please allow them 48 hours to review this and post back here. However, there are some pretty HTML savvy people that participate here in the forum as well, so maybe one of them will hop in to help out before that time.

Kind Regards,
Emmy
Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Penny,

This code looks incomplete to me. Can you please let me know where you got that code from? Also, if you can post your URL, that would be great!

Alternatively, if you are wanting a button to take you back to the home page, what you could do very easily is just add your button image using the Picture Widget. Then, click on the "Edit" link. Click on "Choose A Link" button - the Link Editor dialog box will open. Add a link to your index page and click "OK". Then click on "Save".

I hope that helps.