Easy html question
hey, i was curious to know if you guys could tell me how to have a link on my homepage open up as a smaller window, with just the information pertaining to the link (pic, then some words).
or a link that may help me.
thanks
Ashe
timjpriebe posted this at 16:11 — 5th April 2005.
He has: 2,667 posts
Joined: Dec 2004
Not totally sure what you're asking. You want the link to only pop up a window with a picture and some text?
If so, something like this may work:
LINK TEXT
FILENAME would be the name of an HTML file with the pic and words in it.
Tim
http://www.tandswebdesign.com
bja888 (not verified) posted this at 18:52 — 5th April 2005.
They have: 5,633 posts
Joined: Jan 1970
<a href="#" onClick=javascript:window.open("FILENAME.html","_blank","menubar=no,width=550,height=375")>LINK TEXT</a>
'You want it to be a blank window, not name it "blank".
Ashe posted this at 19:57 — 5th April 2005.
They have: 25 posts
Joined: Mar 2005
thanks a ton
bja888 (not verified) posted this at 20:09 — 5th April 2005.
They have: 5,633 posts
Joined: Jan 1970
Actually, this whould be more efficent
<a href='javascript:window.open("FILENAME.html","_blank","menubar=no,width=550,height=375")'>LINK TEXT</a>
timjpriebe posted this at 20:21 — 5th April 2005.
He has: 2,667 posts
Joined: Dec 2004
Yes, but if you do it without sticking the # in the href and the javascript in onclick, it will leave the page you had open in the original window. IE will display [object] and FireFox will display [object Window].
Assuming you want the original page to still be displayed, don't do it that way.
I believe you're right, bja888, about using _blank instead of. Sorry about that.
Tim
http://www.tandswebdesign.com
bja888 (not verified) posted this at 20:39 — 5th April 2005.
They have: 5,633 posts
Joined: Jan 1970
oops, ur right!! you have to make it a function if you wanna put the 'javascript:' in the href. We where bothe wrong
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.