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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

document.write problem

Status
Not open for further replies.

YodaMan81

Technical User
Jul 8, 2003
94
US
I want to write a link within a document.write statement...how do I do that?

I have right now:
Code:
{cookie1 = "Your browser settings are set to reject cookies. You can either lower your settings by choosing Medium in the Internet Options located in the Tools Menu or you can visit [URL unfurl="true"]www.abc.com/agentlogin.asp[/URL] to login without using cookies.";}

document.write(cookie1)
I would like that to be a link so that the user does not have to type it in. Also how can I put quote around some of the words in that sentence? the Document.write statement gets quite difficult to work with when you start using quotes (as many of you are already aware).

-Thanks
 
YodaMan81, when using the document.write() statment, any quotes inside the parenthesis should be a single quote.

EX:
Code:
document.write(&quot;Hello, please visit <a href='[URL unfurl="true"]http://www.mysite.com'>MY[/URL] SITE</a>&quot;);


I have this little thing, Advanced Delusionary Schizophrenia with Involuntary Narcissistic Rage. It's no big deal really...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top