onclick help

liunx

Guest
I'm new to all of this. So hopefully someone will take pity on a learner!<br />
<br />
<A HREF=http://www.webdeveloper.com/forum/archive/index.php/"http://www.htmlgoodies.com"<br />
onClick="alert('Hello out there!')";>HTML Goodies</A> <br />
<br />
In the above example I wish to add more text to the alert and format it. Eg Hello out there<br />
(then on a separate line) How are you? etc<br />
I also want to put the first line in bold, italics...<br />
<br />
However if I insert tags ie <br> <b> etc they appear in the alert text as they are typed.<br />
Is there a way around this?<br />
<br />
Also is it possible to remove the alert symbol?<br />
<br />
Thanks in advance<br />
Lou<!--content-->Thats a javascript problem, the only way you can do this is to <br />
use DHTML but that uses up a lot of coding.<br />
<br />
<!-- m --><a class="postlink" href="http://javascript.internet.com/messages/drop-in-content-box.html">http://javascript.internet.com/messages ... t-box.html</a><!-- m --><br />
<br />
just something like that - click on the example to see it though.:D<!--content-->example, multi-line alert:<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.htmlgoodies.com/" onclick="alert('blah\nblah\nblah\nblah'); return false;">link</a><!--content-->
 
Back
Top