Home button

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
wimconix
Beginner
Beginner
Posts: 1
Joined: Sun Oct 23, 2005 5:50 am
Location: Belgium
Contact:

Home button

Post by wimconix »

Hi,

Question :

How can I make my home button go to the actual url in the address bar ?
I need this because we have a lot of subdomains with each its own startpage. From the startpage all menulinks are directing to pages of the main site. So history.back() & history.go() do not work here, because they send always to the main site's startpage instead of the subdomain's startpage.
Is there a way to make the button dynamic ? Or a function that simulates the F5 refresh button of IE.
Pages are in ASP / VbScript / MSSQL

Any help appreciated !

Greetz,

Wim
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

You got a URL that we can see?

Might be a simple fix but need to see the problem first.
Shap5202
Super Advanced
Super Advanced
Posts: 62
Joined: Thu Sep 29, 2005 2:36 pm

Post by Shap5202 »

for a refresh... look at this example

http://milonic.com/menusample27.php

(there is a refresh option in the context menu).

For a scripting standpoint you could do..

Code: Select all

<script>
function goHome(){
    location.href = location.href;
}

----declare your menu----
    aI("text=Home;onfunction:goHome();");
----rest of menu----
</script>
I think that would work (havent actually tested it).
Post Reply