28, May 2012

Using 100% width and height in popup windows. - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Using 100% width and height in popup windows.
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Using 100% width and height in popup windows.  (Read 3212 times)
Spy Agent
***
Gender: Male
Posts: 113
70 credits
Members referred : 0


« on: Aug 19, 2006, 07:03:25 pm »

Hi, I want to make a popup that when it opens it takes up full screen what ever the resolutions.
I have this script and think it'll be easy to modify it to what i want, i just don't know how.

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="100%",height="100%",scrollbars=yes');
return false;
}
//-->
</SCRIPT>
<A
   HREF="/games/dronline_NG[1].swf"
   onClick="return popup(this, 'notes')">To view this game in a popup
window click here!</A>

Thanks!
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Aug 19, 2006, 07:55:40 pm »

Jnb,

try this function:
Code:
<script type="text/JavaScript">
<!--
function window_open(page, name) {
newWindow = window.open(page,name,'scrollbars=no,width='+screen.width+',height='+screen.height+',left=0,top=0');
  newWindow.creator=self;
  newWindow.focus();
}

//-->
</script>

with this html code:
Code:
<p><a href="#" onClick="window_open('/index.php', 'window1');">Some link...</a></p>


(please try to post your questions in the right forum)

Spy Agent
***
Gender: Male
Posts: 113
70 credits
Members referred : 0


« Reply #2 on: Aug 19, 2006, 07:57:36 pm »

Yeh sorry I was looking at a HTML tut at the time Sad
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Aug 19, 2006, 08:13:32 pm »

Yeh sorry I was looking at a HTML tut at the time Sad
No problem, but you noticed know that these are Javascript issues? HTML is markup and what you're trying belongs to the categorie client side scripting, in fact HTML is very stupid ... hehe (and more stupid is one browser on the net which can't read html) Cheesy

Spy Agent
***
Gender: Male
Posts: 113
70 credits
Members referred : 0


« Reply #4 on: Aug 19, 2006, 08:36:04 pm »

Lol, Yeh i know what HTML And JS Is Smiley
Anyway, Ill use your script soon just watching X Factor Smiley
Pinoy Webmaster
.com pimp
*****
Gender: Male
Posts: 1126
6048 credits
Members referred : 0


Philippine Beaches


« Reply #5 on: Aug 20, 2006, 03:21:27 am »

nice script. thanks olaf. will add it to my colection.


Last blog : Bingag Beach, Bohol, Philippines
Spy Agent
***
Gender: Male
Posts: 113
70 credits
Members referred : 0


« Reply #6 on: Aug 20, 2006, 01:30:23 pm »

Yep, it works great, thanks Smiley
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3733
Tags : javascript html pop up browsers Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  JavaScript
Topic: Using 100% width and height in popup windows.
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 03:14:27 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.