Jump to content

Web Design: Links Help


Guest Cashmiesta

Recommended Posts

Guest Cashmiesta

Hi.

Im in need of help lol and it's got something to do with links.

I want to make a site for my e-wrestler but when I want to click on a link, I want it to pop-up in a new window which is like resized to the size of that template.

For example if my template size is 790x700, I want the pop up window to open to that size, is there any codes for it please?

Thanks in advanced,

Mitch

Link to comment
Share on other sites

This is the code you should use. It needs javascript at the beginning and then you would modify the link code here to fit what you want.

<HTML>

<HEAD>

<!-- In the head section of the page -->

<script>

<!--

function wopen(url, name, w, h)

{

w += 32;

h += 96;

 var win = window.open(url,

  name,

  'width=' + w + ', height=' + h + ', ' +

  'location=no, menubar=no, ' +

  'status=no, toolbar=no, scrollbars=no, resizable=no');

 win.resizeTo(w, h);

 win.focus();

}

// -->

</script>

<TITLE>index</TITLE>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

</HEAD>

<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

<a href="index.html" target="popup"

 onClick="wopen('index.html', 'popup', 50, 50); return false;"> Click here to open the page in a new window. </a>

</BODY>

</HTML>

Edited by Fitzy
Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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. To learn more, see our Privacy Policy