Topic: Using 100% width and height in popup windows. (Read 3212 times)
Spy Agent
Gender:
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:
Posts: 6691
34714 credits Members referred : 374
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)
Spy Agent
Gender:
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 Anyway, Ill use your script soon just watching X Factor
Pinoy Webmaster
.com pimp
Gender:
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.