[javascript link pop up window?] -



javascript link pop up window?

Discuss javascript link pop up window?



Posted by: spfd

hi, i was curious how to make a javascript pop up window.

ie. click on a link for a picture, it opens up the link but only a window, no address bar or anything.

I have this code
"<A HREF="jsp_11.html" onClick="window.open('opened.html', 'joe',
config='height=300,width=300')">"

it works, but the problem with it is, when i get the pop up, it changes the page content.

ie. i click on link, the window pops up, and the window that i used to click the link changes to jsp.html.

thanks in advance,



Posted by: ADZ

[url]http://javascriptkit.com/popwin/index.shtml[/url]

You can specify what you want in there.



Posted by: raylu

Why do you have an href pointing to another page?

[code]<a href=javascript:window.open('page. html','windowname',config=width=x,height=x,toolbar
=no,scrollbar=no,status=no,location=no')>Link</a>[/code]

I think that should do it. It's always eaiser to do this though:

[CODE]<a href=page.html target=_blank>Link</a>[/CODE]