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 Jonathan N. Little on 03/20/06 01:26

Chris Ianson wrote:
> "Jonathan N. Little" <lws4art@centralva.net> wrote in message
> news:441c1496$0$3708$cb0e7fc6@news.centralva.net...
>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
>> "http://www.w3.org/TR/html4/strict.dtd">
>> <html>
>> <head>
>> <title>Test Confirm Box</title>
>> </head>
>> <body>
>> <h1>Test Confirm</h1>
>> <p>
>> To test how code a confirm on click,
>> click <a href="http://www.yahoo.com/"
>> onclick="return confirm('Do you really want Yahoo?')">
>> Go To Yahoo</a>
>> </p>
>> </body>
>> </html>
>
> Hmm, any idea why some popup blockers such as Google's seem to block the
> link from opening when OK is clicked?
>
>

If you add a 'target' attribute to your link on a page that is NOT
contained in frames it will open a new window, i.e., a popup window....

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

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