Jump to content

Help with a Dumb Ass HTML Question


liam1412

Recommended Posts

God this is so basic but I cannot find it. I know I knew this a while ago but it has slipped my mind.

 

How do I set the size of a new window from a link.

 

ie

 

<a href taget="new">

 

Whats the rest of it please.

 

 

Sorry to be a dumbass.

 

 

Link to comment
Share on other sites

I believe you'll have to use javascript

 

something like:

<a href="/link.html" onclick="window.open(this.href, 'popupwindow', 'width=500,height=500,scrollbars,resizable'); return false;">
click me
</a>

 

you might still want to use target="_blank" for those who have JS turned off.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.