用createPopup()创建的popup相当于一个子窗口,使用链接时要用parent.location.href.
如在显示标题时这样写:
popmsg("<a href=\"#\" onclick=\"parent.location.href='http://www.ugain.org'\"> uGain </a>", "<center>做你该做的事!<br>做你能做的事!<br>做你想做的事!<br>Do Things U SHOULD!<br>Do Things U CAN! <br>Do Things U WANT! <br><br></center>");
如在显示标题时这样写:
popmsg("<a href=\"#\" onclick=\"parent.location.href='http://www.ugain.org'\"> uGain </a>", "<center>做你该做的事!<br>做你能做的事!<br>做你想做的事!<br>Do Things U SHOULD!<br>Do Things U CAN! <br>Do Things U WANT! <br><br></center>");
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/createpopup.asp