javascript - Opening HTML pop-up windows -


i'm trying figure out best , simplest way of opening html pop-up windows.

update: not intended spam. pop-up mean new window without toolbars. need similar facebook connect api.

i'm using js

<script type="text/javascript"> function popup(url) { id = "hello"; eval("page" + id + " = window.open(url, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=628,height=326,left = 406,top = 287');"); } </script> 

and adding link

<a href="javascript:popup('http://www.google.com')">pop up</a> 

it works fine i'm not sure if method has been depreciated.

pop-ups annoying. best way if have make accessible people turn of javascript:

<a href="http://google.com/" target="_blank" onclick="popup('http://google.com/'); return false"> 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -