Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem

Status
Not open for further replies.

haddi

Programmer
Apr 4, 2000
2
US
hi<br>well am in trouble, if in the below code if we need to give a link ( ahref) to that http line (java script) )<br>hot to do it,i hope i told it properly,i want to know how to give HTML tags in between this javascript,html tag for giving link to other page from the particular line of javascript(msg += <br><br>....<br>var temparr = temp.split(&quot;/&quot;);<br> temparr.reverse();<br> temparr.pop();<br> temparr.reverse();<br> temp=temparr.join(&quot;,&quot;);<br> <br> if (emailAddr != null && emailAddr != &quot;&quot; && emailAddr.indexOf('@',0) != -1)<br> {<br> var emailUtil = new BVI_EmailManager();<br> var msg = &quot;From: <A HREF="mailto:Manager@onlineassetexchange.com">Manager@onlineassetexchange.com</A> \n&quot;;<br> msg += &quot;To: &quot; + emailAddr +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;\n&quot;;<br> msg += &quot;Subject: Requesting more information about an asset on The Online Asset Exchange. \n&quot;;<br> msg += &quot;Dear &quot;+visitorTo.FIRST_NAME+&quot;,\n\n&quot;;<br> msg += &quot;There is a potential buyer of your asset described below that has requested more information &quot;;<br> msg += &quot;about the asset.&nbsp;&nbsp;Please click on the link below to respond to their question. If you have any &quot;;<br> msg += &quot;1-877-600-5566 or email <A HREF="mailto:info@onlineassetexchange.com">info@onlineassetexchange.com</A>.&quot;<br> msg +=&nbsp;&nbsp;&quot;\n\n&quot;;<br> msg += &quot;<A HREF=" TARGET="_new"> + Request.HTTP_HOST + Session.cgiinfo + &quot;/index.jsp?page=/infoResponse&to=&quot; + Session.visitorID + &quot;&oid=&quot; + Session.OID;<br> msg +=&nbsp;&nbsp;&quot;\n\n&quot;;<br> msg += &quot;Potential Buyer's Question: \n&quot;<br> m
 
if I understand what you are trying to say, you can use two methods: <b>document.write()</b> and <b>document.writeln()</b> (thats a lowercase L, not an I)<br><br>these write to the current position in the source code. If the script is run as a function after the page is loaded, they write to the bottom of the document.<br><br>does this help?keep me posted <p>theEclipse<br><a href=mailto:eclipse_web@hotmail.com>eclipse_web@hotmail.com</a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>**-Trying to build a documentation of a Javascript DOM, crossbrowser, of course. E-mail me if you know of any little known events and/or methods, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top