You are here: Re: script to open a new window « HTML « IT news, forums, messages
Re: script to open a new window

Posted by Neredbojias on 10/07/05 20:10

With neither quill nor qualm, Jonathan N. Little quothed:

> JDS wrote:
>
> > On Thu, 06 Oct 2005 23:01:21 +0100, SpaceGirl wrote:
> >
> >
> >><a href="mypage.html" onclick="popup('mypage.html'); return true;"
> >
> >
> > Shouldn't that be "return false"?
> >
>
> I would think so, else if JavaScript is enabled both the popup will load
> AND the main page will load 'mypage.html'. You want it to return false
> so that if JavaScript is enabled the main page link will be ignored but
> if JavaScript is disabled the onclick event will be ignored and the
> fall back will be that 'mypage.html' loads in the main window.

What if javascript is enabled but popups are disabled?

--
Neredbojias
Contrary to popular belief, it is believable.

 

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

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