View Single Post
Old 07-05-2013, 07:40 PM   #2
seuli
Registered User
 
Join Date: Jun 2013
Posts: 5
How to Create Pop-Up

Hi!
How to Create Pop-Up Windows
Aaron Boodman, September 19, 2002
Forget everything you know about creating pop-up windows. Most importantly, forget you ever knew that the javascript pseudo-protocol ever existed. Do you hear me??


<a href="http://google.com/"
onclick="window.open(this.href, 'popupwindow', width=400,height=300,scrollbars,resizable');
return false;">
Click me any way you desire, now or later, bookmarked or not.
I will not attempt to control you, nor punish you, for I am a
simple hyperlink; eager to do your bidding, while remaining ever
helpful. I anticipating desires, but never trample possibilities.
This is the way of the Link.
</a>
Example

See how wonderful that is?? I can bookmark it, I can favorit-ize it. I can left click, I can right click. I can do all the things that an enlightened person might wish to do to a hyperlink. And if I do the default thing, you (ever so helpful author), anticipate my need for a popup without defiling my RIGHT to do whatever else I may want.
seuli is offline   Reply With Quote