Re: script to open a new window
- From: "Jonathan N. Little" <lws4art@xxxxxxxxxxxxx>
- Date: Fri, 07 Oct 2005 17:49:00 GMT
Neredbojias wrote:
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?
You're screwed! ;-) That's a good reason NOT to use a popup right?
-- Take care,
Jonathan ------------------- LITTLE WORKS STUDIO http://www.LittleWorksStudio.com .
- References:
- script to open a new window
- From: Jackmac
- Re: script to open a new window
- From: Jonathan N. Little
- Re: script to open a new window
- From: SpaceGirl
- Re: script to open a new window
- From: JDS
- Re: script to open a new window
- From: Jonathan N. Little
- Re: script to open a new window
- From: Neredbojias
- script to open a new window
- Prev by Date: Re: Luigi come back!
- Next by Date: Re: Offscreen image without scrollbars
- Previous by thread: Re: script to open a new window
- Next by thread: Re: script to open a new window
- Index(es):
Relevant Pages
|
Loading