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 04-12-2007, 07:12 AM
Leghorn8
Guest
 
Posts: n/a
Question Making link open in new browser window.

Greeting from Leghorn8,
I'm building a site and I don't want to loose viewers when they click on an
off-site link. I need the HTML code to paste at my front page links to make them open in a new browser window.
A friend ust to always say "RTFM". Well I have looked for it, but after
moving 4 times in the last 3 years, I fear it has been lost. So here I am...
Just finished downloading "2createawebsite"s HTML tutorial. Maybe I can
find it there.
Thanks for any help and good luck with the new site...
Leghorn8
Reply With Quote
  #2 (permalink)  
Old 04-12-2007, 09:28 AM
lisa's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 7,435
lisa is the Admin and cannot be rated.
Default

Hey Leghorn,

Here's the code (ignore the spaces. I had to do this to prevent the message board from turning it into an active link)

< a href = " http://www.yoursite.com " target ="_blank" > www.yoursite.com < / a >
__________________
Don't put the cart before the horse.
Plan your website, then create it.

Your Free Guide to Starting a Website
http://www.ThePerfectSiteGuide.com




Reply With Quote
  #3 (permalink)  
Old 04-15-2007, 06:28 PM
Seclinix
Guest
 
Posts: n/a
Default

wow that looks quite simple lol how can you make it open 2 windows with difrent pages on each so if you click the link it will open hmm lets say google and this forums?
Reply With Quote
  #4 (permalink)  
Old 07-03-2007, 10:01 AM
Lajocar's Avatar
Supreme Babbler
 
Join Date: Jun 2007
Posts: 611
Lajocar has a few positive reputation points
Default

Hi Leghorn8,

You can use the simple way that Lisa explained with (target ="_blank") in the HTML code or alternatively you can use javascript which will be much more versatile, because you can specify the following:

Window Attributes

Below is a list of the attributes you can use:
  1. width=300
  2. height=200
  3. resizable=yes or no
  4. scrollbars=yes or no
  5. toolbar=yes or no
  6. location=yes or no
  7. directories=yes or no
  8. status=yes or no
  9. menubar=yes or no

Example:

<FORM>
<INPUT type="button" value="This is a New Window!" onClick="window.open('http://www.#####.html','testwindow','width=400,height=200 ')">
</FORM>

Reply With Quote
  #5 (permalink)  
Old 07-22-2007, 07:07 AM
Junior Babbler
 
Join Date: Jul 2007
Posts: 27
koitech has a few positive reputation points
Default

hi Seclinix
you can do this by using javascript
you can call the function of javascript when user will click on that lilnk.
and in that function you can open unlimited windows.
if you need more help in writing that function. then just let me know. I will write that function for you.
__________________
I recommend this reliable web host: MarbleHost.com
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 03:56 AM.


 Subscribe to RSS

WB Sponsors

flash chat

Home Jobs Online

Search Engine Marketing

Paid Surveys

Web Design Newcastle

Bookmarking Demon 5



 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