HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
New window not pop up
Post new topic   Reply to topic    HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
LisaMills



Joined: 30 Dec 2004
Posts: 5
Location: London

PostPosted: Thu Dec 30, 2004 3:22 am     New window not pop up Reply with quote

Hi, I'm very very new to html coding. We have a website http://www.24-7london.co.uk for which we have received permission to have an affiliation with ticketmaster. I am able to put their code that they provided in but this opens up over our website and our site disappears. I want to open it up in a new window but not a pop up as many people now block pop ups. I just want a full new window. Any ideas?
eric123



Joined: 14 Dec 2004
Posts: 9

PostPosted: Fri Dec 31, 2004 7:06 pm     Reply with quote

<a href="http://domain.com" target="_blank"></a> is that what u mean
LisaMills



Joined: 30 Dec 2004
Posts: 5
Location: London

PostPosted: Sun Jan 02, 2005 2:27 am     Window not pop up Reply with quote

I'm not sure Eric, but sounds good. I will give it a go.
Thanks
LisaMills



Joined: 30 Dec 2004
Posts: 5
Location: London

PostPosted: Tue Jan 04, 2005 3:25 am     New window not pop up Reply with quote

That didn't work. A new window opened up but my website disappeared. I can get my website back by clicking 'back' but I want both websites to remain open. The coding I have is http://www.ticketmaster.co.uk/section/arts_theater?affiliate= ZB55" target="_blank
Maybe it needs to be a pop up but i'm not keen on them.
any further suggestions?
If you need a demo go to http://www.24-7london.co.uk, attractions, performing arts, 1984 and click book now.
cemplukcute2003



Joined: 27 Dec 2004
Posts: 28

PostPosted: Wed Jan 05, 2005 12:18 am     Reply with quote

<SCRIPT LANGUAGE='JavaScript'>
{literal}
function callList() {
window.open('http://www.ticketmaster.co.uk/section/arts_theater?affiliate');
}
{/literal}
</SCRIPT>

and then in html coding :

<INPUT TYPE=Button NAME='Show' VALUE='Show' onClick='callList();return true;'>

i don't know if it suites u, but i hope it can help..
LisaMills



Joined: 30 Dec 2004
Posts: 5
Location: London

PostPosted: Wed Jan 05, 2005 1:31 am     new window not pop-up Reply with quote

Sounds completed, but I will give it a go! Thank you
kanenas



Joined: 14 Dec 2004
Posts: 341

PostPosted: Wed Jan 05, 2005 1:34 am     Re: New window not pop up Reply with quote

Opening the link in a new window IS a pop-up, no matter what the method.

LisaMills wrote:
That didn't work. A new window opened up but my website disappeared. I can get my website back by clicking 'back' but I want both websites to remain open. The coding I have is http://www.ticketmaster.co.uk/section/arts_theater?affiliate= ZB55" target="_blank
Maybe it needs to be a pop up but i'm not keen on them.
any further suggestions?
If you need a demo go to http://www.24-7london.co.uk, attractions, performing arts, 1984 and click book now.


It's not clear what you mean by 'disappeared' and 'both websites to remain open'. If the link opens in a new window, the old window must still be open. By 'disappeared', do you mean covered by the new window? If you close the new window, do you see your website in the old window? If so, the new window covers up the old one because the old window was maximized. The only way to open a new window unmaximized is to use 'window.open'.

The example source for the link isn't displaying properly; please enclose it in BBCode 'code' tags, e.g.:
Code:
[code]
<a href="http://www.ticketmaster.co.uk/section/arts_theater?affiliate= ZB55" target="_blank">Ticketmaster</a>
[/code]


Setting the 'target' attribute of a link to "_blank" as above should cause the link to open in a new window, leaving the old window untouched (as per the HTML4 spec) in all modern browsers that support multiple browser windows (i.e. not Lynx).

Finally, before settling on opening the link in a pop-up (with either window.open or target="_blank"), read this article on the use of 'target="_blank"'
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial