<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)
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.