New window function as hyperlink - non-javascript compatible
Posted: Thu Dec 16, 2004 4:38 pm
Hi,
I've got a function the opens a new window and that's all simple enough. But I'm implementing it like this
The only thing is... I want this to at the very least open a window on browsers not supporting javascript.
I tried puuting an onClick event combined with a standard hyperlink and a target attribute but this causes two windows to open on a javascript enabled browser.
What is the technique for increasing accessibility for this kind of thing?
Cheers
I've got a function the opens a new window and that's all simple enough. But I'm implementing it like this
Code: Select all
<a href="javascript:openWindow('myWin.html','newWindow','width=300,height=400')">Click me</a>I tried puuting an onClick event combined with a standard hyperlink and a target attribute but this causes two windows to open on a javascript enabled browser.
What is the technique for increasing accessibility for this kind of thing?
Cheers