/    Sign up×
Community /Pin to ProfileBookmark

Controling Link window size

Hi guys. Im new to the board. Im just starting my first web site at work and have,what I think,is a simple question. I have a link page with 3 links on it linking a image to a different web site. I dont want customers to link to another site and leave ours entirely. So I put in a target tag like this

<a href=”http://www.sfgate.com/cgi-bin/article.cgi?file=/chronicle/archive/2001/02/16/WB164580.DTL”TARGET=links>

Sorry for the length of that. It works fine but it takes up the whole page so the person actually thinks they left the site. Im sure there is a easy way in javascript to control the size of the window to make it smaller. I tried what it said in the Javascript for controling image windows but I cant get it to work with links. Can anyone help me with this? Thanks

Sam

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@CharlesFeb 18.2003 — [font=monospace]<a href="http://www.sfgate.com/cgi-bin/article.cgi?file=/chronicle/archive/2001/02/16/ WB164580.DTL" onclick="window.open(this.href, 'child', 'height=300,width=200,scrollbars'); return false">Darling, you send me.</a>[/font]
Copy linkTweet thisAlerts:
@danteauthorFeb 18.2003 — Thank you very much Charles. Can you recomend a good book to get for javascripting? The one I have now is "JavaScript for the world wide web" by Tom Negrino and Dori Smith.

Thanks again ?
Copy linkTweet thisAlerts:
@danteauthorFeb 18.2003 — Hi Charles. Is there a way to make the web page that I am linking to fit the window? Or a way to activate the middle box at the top right of the window so the person can make the window full size??? Hate to bother you again. Thanks

Sam
×

Success!

Help @dante spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...