Computer ForumsComputers  

Go Back   Computer Forums > The World Wide Web > Web Graphics, design, digital images

Reply
 
LinkBack Thread Tools Display Modes
Old 03-08-2004, 06:08 AM   #1 (permalink)
Ultra Techie
 
Join Date: Oct 2003
Posts: 934
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,
__________________

spfdz - NEVER FORGET

spfd is offline   Reply With Quote
Old 03-08-2004, 10:41 AM   #2 (permalink)
ADZ
Master Techie
 
Join Date: May 2003
Posts: 2,233
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   Reply With Quote
Old 03-15-2004, 11:37 PM   #3 (permalink)
Junior Techie
 
Join Date: Mar 2004
Posts: 56
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   Reply With Quote
Reply

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



All times are GMT -5. The time now is 07:55 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0