iWebBuddy.com
Thanks for visiting iWebBuddy.com ,

If it is your first time here, please enjoy reading the tutorials and articles. If you can not find what your looking for, then you can join the forums by registering so you will be able to log into the forums and ask for support for website development, request graphic designing services, promote your website, request website reviews, get advice from others about your website or be an active member of the community to help iWebBuddy.com grow.

After you register an account, you are required to log in. Once you log into your account, you will have more previliges. You will be able to post on the forums, send private messages and view the Chatbox ( link ) at the bottom of the forums.

Have a nice day.


Link To Re-Sized Window

Post new topic   Reply to topic

View previous topic View next topic Go down

Link To Re-Sized Window

Post by Marc on Fri 16 Oct 2009 - 14:01

This script allows you to make a window smaller or larger depending on what you set it to.

When the link is clicked, the window will stay the size you choosed.

First, add this script to your Head tags of your html page.

Code:
<script type="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
  href=mylink;
else
  href=mylink.href;
window.open(href, windowname, 'width=400,height=400,scrollbars=yes');
return false;
}
//-->
</script>


Then, use this as your link :

Code:
<a href="URL HERE" onClick="return popup(this, 'notes')">Click Here</a>


Replace URL HERE with your url.

You can also modify the size of the window by editing this in the script code :

'width=400,height=400,scrollbars=yes'

Marc
Administrator
Administrator

Posts: 339
iCoins: 688

View user profile http://www.iwebbuddy.com

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:
You cannot reply to topics in this forum