i have javascript that worked in asp, but can't makeit work in aspx.Post the javascript. There is absolutely no reason why client-side js that worked with asp would not work with ASP.NET.
function setHome()
{
xcxc.style.behavior='url(#default#homepage)'
xcxc.setHomePage('http://www.shoresh.org.il/')
}
i call it like this:
?? ? ??
can't make the "name" in aspx...
aspx and javascript are complementary... You can put any javascript code in your aspx page, as you can do in a html page. What do you mean by this:
xcxc.setHomePage('http://www.shoresh.org.il/')
Is "setHomePage" a member function of the javascript hyperlink object ?
I don't know, it is working great in my site for now ("www.shoresh.org.il"), i can't put it in the aspx page, but i don't need just it, any script that will run will help...
checkthis article
thanks, finished like this:
sethome.Attributes.Add("onclick", "javascript: this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.shoresh.org.il');")
0 comments:
Post a Comment