<a HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage(http://myweb.com);"><img src="images/house.gif" width="18" height="20">
Click here to make this your default homepage!</a>
Using the above code works just fine BUT I want to use a variable after the this.setHomePage which is dynamically assigned with the url of the page.
The url can be obtained from a header as in ASP I assume...
Anyway I cannot seem to use a variable - only text as in this.setHomePage(http://www.myweb.com)
I want this: this.setHomePage(myvar) to work...
Something like this maybe:
document.write('<a href="#" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\location.href);">Click here to make My Site your default homepage</a>')
You should also know that none of the Mozilla browsers support this feature.
Thank you Mr!
Hey that works a treat - thank you very much! Pat yourself on the back and give yourself an extra beer.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)