Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-08-2004, 07:08 AM   #1 (permalink)
 
Ultra Techie

Join Date: Oct 2003

Posts: 934

spfd

Default javascript link pop up window?

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,
__________________
<font face=arial><h1>spfdz - NEVER FORGET</h1></font>
spfd is offline  
Old 03-08-2004, 11:41 AM   #2 (permalink)
ADZ
 
Master Techie

Join Date: May 2003

Posts: 2,233

ADZ is on a distinguished road

Send a message via Yahoo to ADZ
Default

http://javascriptkit.com/popwin/index.shtml

You can specify what you want in there.
ADZ is offline  
Old 03-16-2004, 12:37 AM   #3 (permalink)
 
Junior Techie

Join Date: Mar 2004

Posts: 56

raylu

Send a message via AIM to raylu
Lightbulb

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>
I think that should do it. It's always eaiser to do this though:

Code:
Link 

__________________
\"Only when the last tree is dead, the last field paved, and the last river dammed, only then will we realize that we can\'t eat money.\"
http://raylu.uni.cc
raylu is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On