/    Sign up×
Community /Pin to ProfileBookmark

alright so i’ve been out of the webdesign for a couple years, and i think i remember one time having a link targeted to a new window, but the window was personalized to a certain height and width. i could be remembering this totally wrong but i could have sworn that i’ve seen it on websites before.

now..does anyone know where i can find the code for that, if it exsists? any help would be mucho appriciated! thanks ?

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@frigginsavageauthorApr 29.2007 — thank you! do you know if there is any way to do it with a regular link, instead of a button?
Copy linkTweet thisAlerts:
@Major_PayneApr 29.2007 — It was already shown, but this worked in FF and IE 7.0:

<head>

<script type="text/javascript">

<!--

function myPopup() {

window.open( "http://www.google.com/" )

}

//-->

</script>

</head>

<body>

<p onClick="myPopup()">CLICK ME TOO!</p>

</body>

Change URL to fit your preference.

I think what you are really looking for is to open a new window as a popup and have control over the window size. This script only opens a new window or tab to the URL given. Might play with this online tool:

Popup Window Maker

Ron
Copy linkTweet thisAlerts:
@CharlesApr 29.2007 — That is so profoundly not the way to open a window that in some places and for some web sites it's against the law. And the example given is incorrect; when specifying the window geometry you need to not include and spaces. Use [code=html]<a href="http://www.w3.org/" onclick="window.open (this.href, 'child', 'height=400,width=300'); return false">W3C</a>[/code]
Copy linkTweet thisAlerts:
@Major_PayneApr 29.2007 — Everyone has their own way of "skinning the cat", but it was simple and quick. Your comments are noted even if not correct in most instances. Besides, it was an example taken from creedo's link that I used without adding another way. I also have more examples, both simple or complex. KISS method is always best if it does what you want.

Ron
×

Success!

Help @frigginsavage 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 6.10,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...