So, I found this really cool side panel script I could use as new CPanels for my site. (kapleenmusic.webfreehosting.net) I just have one question; How can I use HTML inside Javascript, if you know what I mean.
Note I have two buttons in there, top being used as example when I'm editing. The second button is what we're watching here; Anyways, to the point, in theCode:p = new createPanel('p','testpanel'); p.addButton('peditor.gif','Personal<BR>Editor','alert("Personal Editor")'); p.addButton('logo.gif','test<br>button','alert("linkhere")'); o.addPanel(p);
'alert("linkhere")'
part, I would like to use HTML inside that javascript alert.
Ex:
'alert("<a href="http://dynamicdrive.com">DynamicDrive</a> rocks.")'
I tried that and it failed, what should I do?
EDIT: Got it to work, actually the code I was supposed to add wasparent.main.location="http://link.com".
EDIT: Nevermind :/ It won't go to the link. http://kapleenmusic.webfreehosting.net/outlook.html to see for yourself..



Reply With Quote


Bookmarks