Website Babble Webmaster Forums  


Go Back   Website Babble Webmaster Forums > Creating a Website > HTML, PHP, CSS, Javascript & Coding/Programming Topics

Your WB Notifications

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-03-2009, 01:39 PM
Junior Babbler
 
Join Date: May 2009
Posts: 4
TBridge has no reputation at Website Babble yet.
Default Target Attribute

I have a webpage with links to other webpages using A HREF. I want a new window to open, but only have one new window (2 total) open at any time. I have used the target attribute and given it a unique name. When I first click on a link, it opens a new window and takes me to the new window. When I go back to my orginal page and click on another link, the new window that is already opened is now updated to the new webpage.
The problems is I do not go to the new window, I stay on my orginal page.

What I would like is to go to the new window each time a link is clicked on. I only want 1 new window opened and want the new webpage in that window. But I would like to direct the user to the new window each time.

Is there some way to do this.
Thanks for any help
Reply With Quote
  #2 (permalink)  
Old 08-04-2009, 01:41 AM
kelevraco's Avatar
Supreme Babbler
 
Join Date: May 2009
Location: Colorado
Posts: 511
kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)kelevraco has an outstanding reputation at WB (over 500 points)
Send a message via MSN to kelevraco Send a message via Yahoo to kelevraco
Default

This depends on the user settings they have set up for their browser. If they have it set to open in the background then there is nothing you can do about this as the browser ignores other commands.
__________________
Reply With Quote
  #3 (permalink)  
Old 08-04-2009, 04:42 AM
Master Babbler
 
Join Date: Jul 2009
Location: Rochester, NY
Posts: 126
k2zs has more than the average amount of reputation points
Send a message via Yahoo to k2zs
Default Browser focus

I believe target opens in a new browser if only one is open, if more than 1 browser is open, target opens the link in the browser that doesn't have focus.
__________________
Scott, K2ZS
http://www.k2zs.com
Reply With Quote
  #4 (permalink)  
Old 08-06-2009, 08:38 PM
Junior Babbler
 
Join Date: Aug 2009
Location: I am currently in Chandler Arizona.
Posts: 29
mbalrog6 has more than the average amount of reputation points
Default

I think what you want is not the way a browser is designed to work. They want the users to have that kind of control not the browser. What you want typically needs coding power. You can probably do what is necessary with JavaScript. JavaScript will allow you to check to see if a window has a child window open. If so you can then throw the focus to the new window. You could then have the location of the child window change to the url that is clicked. You would have to know JavaScript to do this though, and anyone with JavaScript turned off would not get the effect.

I believe that the people using your site would not mind having multiple pages open, they can clean them up themselves. This kind of window manipulation can be used maliciously which is why browsers options exist to override the commands you are seeking. Like carving wood sometimes it is best to just go with the grain. Also people do not like having things change, people are use to have browsers open up windows stopping that natural flow may cause them to feel at unease when using your site.
Reply With Quote
  #5 (permalink)  
Old 08-06-2009, 09:36 PM
claire0917's Avatar
Regular Babbler
 
Join Date: Jul 2009
Posts: 55
claire0917 has a few positive reputation points
Default

I think that what you're trying to do is not what users would expect. I would prefer a new window to open rather than overwrite an existing one. But if you really need that feature, I suggest using javascript. You can call window.focus() to make that window come up.
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 -6. The time now is 04:41 PM.


 Subscribe to RSS

WB Sponsors

flash chat

Home Jobs Online

Search Engine Marketing

Paid Surveys

Web Design Newcastle



 Subscribe to the Website Babble Feeds

2 Create a Website Homepage | 2 Create a Website Blog


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0