Hi,
jonnyjc273: but unfortunately one mouseover I still get all the javascript code etc.
You should append the code: return true at the onmouseover event, but this will make the satus always dispay, so you also need to set the status is empty in the onmouseout event
You can try to refer below code:
1. the aspx code:
<asp:LinkButton ID="LinkButton1" runat="server" PostBackUrl="http://ww.126.com" onmouseout="window.defaultStatus =''" >LinkButton</asp:LinkButton>
<script type="text/javascript">
function abc(url)
{
window.setTimeout('window.defaultStatus =\''+url+"\'",10);
}
2. the codebehind:
protected void Page_Load(object sender, EventArgs e)
{
this.LinkButton1.Attributes.Add("onmouseover", "abc('"+LinkButton1.PostBackUrl+"');return true;");
}
Hope it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support