Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Fixed size pop-up window
Old 04-22-2009, 10:15 PM Fixed size pop-up window
Junior Talker

Posts: 1
Name: james parson
Trades: 0
Hi, I have a "Roaming Companion" on my site and I would like to fix its size and disable the expand and maximize functions. I assume it's in the Javascript rather than the HTML or CSS but do tell me if i'm wrong.

Code:
// JavaScript Document

function doPopups() {
  if (!document.getElementsByTagName) return false;
  var links=document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("popup")) {
      links[i].onclick=function() {
        // Below - to open a full-sized window, just use: window.open(this.href);
        window.open(this.href, "", "top=40,left=40,width=230,height=350");
        return false;
      }
    }
  }
}
window.onload=doPopups;
jamesparson is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to Fixed size pop-up window
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28679 seconds with 12 queries