Wells-it.com - Web Hosting

Easy html question

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

They have: 25 posts

Joined: Mar 2005

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's picture
DeveloperModeratorSponsor

He has: 2,666 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.

bja888's picture

He has: 902 posts

Joined: Feb 2004

<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".

They have: 25 posts

Joined: Mar 2005

thanks a ton

bja888's picture

He has: 902 posts

Joined: Feb 2004

Actually, this whould be more efficent

<a href='javascript:window.open("FILENAME.html","_blank","menubar=no,width=550,height=375")'>LINK TEXT</a>

'

timjpriebe's picture
DeveloperModeratorSponsor

He has: 2,666 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.

bja888's picture

He has: 902 posts

Joined: Feb 2004

oops, ur right!! you have to make it a function if you wanna put the 'javascript:' in the href. We where bothe wrong Sticking out tongue