Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-15-2005, 07:29 AM   PM User | #1
cdc08x
New Coder

 
Join Date: Sep 2005
Location: Latina (Italy)
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
cdc08x is an unknown quantity at this point
Opening multiple windows

Hi all!
I'm trying to create an anchor which opens a new window @ every click for the URI it wants to make the user reach.
The code I made is this:

Code:
function openInNew( href )
{	newWindow=window.open( href , "UnEMS" , "screenX=100,screenY=10,height=490,width=740,scrollbars=1" );
	newWindow.focus();
}
but it makes the anchor open no more than 1 new window, so if I click again on it, it refreshes always the same new window, doesn't create any new.
How can I modify this behaviour?

Thanx a lot!!
cdc08x is offline   Reply With Quote
Old 10-15-2005, 08:27 AM   PM User | #2
Mr J
Senior Coder

 
Join Date: Aug 2002
Location: UK
Posts: 2,789
Thanks: 2
Thanked 14 Times in 14 Posts
Mr J is on a distinguished road
Leave out the window name



PHP Code:
function openInNewhref )
{    
newWindow=window.openhref "" "screenX=100,screenY=10,height=490,width=740,scrollbars=1" );
    
newWindow.focus();

__________________
The silent one.

The most dangerous thing in the world is an idea.
The most dangerous person in the world is the one with an idea.
Mr J is offline   Reply With Quote
Old 10-15-2005, 08:48 AM   PM User | #3
cdc08x
New Coder

 
Join Date: Sep 2005
Location: Latina (Italy)
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
cdc08x is an unknown quantity at this point
Thank You!!!!!!!!!!!!!!!!!!!!!!
cdc08x is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 10:46 PM.


Advertisement
Log in to turn off these ads.