You are here: Re: Can a Hyperlink call a Javascript confirm prompt? « HTML « IT news, forums, messages
Re: Can a Hyperlink call a Javascript confirm prompt?

Posted by Randy Webb on 03/20/06 07:45

Chris Ianson said the following on 3/19/2006 9:00 PM:
> "Randy Webb" <HikksNotAtHome@aol.com> wrote in message
> news:B4ydnUSoXs5ynYPZRVn-jQ@comcast.com...
>> Chris Ianson said the following on 3/19/2006 8:05 PM:
>>> PS: Is it possible to insert a line break in the text that appears in the
>>> prompt confirmation box?
>> \n is a new line in the confirmation.
>>
>> confirm('This is\n text with a \n linebreak')
>>
>> Same thing with an alert
>
> Thanks, I had tried that but it just printed '/n' in the box! Works now
> though, I must have done something wrong.

You used /n instead of \n, note the different slash.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация