JavaScript popup from main menu?
Posted: Wed Oct 15, 2008 4:44 pm
I need to add a popup from the main menu which will open a popup using javascript like this guy.
I have to use Javascript because I need to be able define the properties of the new window, which isn't possible using target="_blank".
For accessibility/ usability reasons I'd like to use A List Apart's method (unless there's a better/ easier option?).
What that boils down to is needing to be able to define an ID (or class) for the link:
there's then a Javascript event listener which is placed in external .js file.
Any help with this'd be much appreciated.
I have to use Javascript because I need to be able define the properties of the new window, which isn't possible using target="_blank".
For accessibility/ usability reasons I'd like to use A List Apart's method (unless there's a better/ easier option?).
What that boils down to is needing to be able to define an ID (or class) for the link:
Code: Select all
<a id="popup-feat" href="example_popup.html">link</a>
Any help with this'd be much appreciated.