Log In · Register

 
pop up windows
juicyy_fruit
post Nov 4 2004, 09:53 AM
Post #1


©shesdiztinQtive
*****

Group: Member
Posts: 562
Joined: Oct 2004
Member No: 56,389



do you guys know the javascript to get a pop up window for a website?
 
 
Start new topic
Replies
*[2]Nekked*
post Nov 4 2004, 03:30 PM
Post #2





Guest






in the head (or top of your code)

CODE
<!-- begin code provided by createblog.com -->
<script language="JavaScript"><!--
function P(url,h,w) { // (url,height,width)
var p = "height=" + h + ",width=" + w + ",scrollbars=yes";
window.open(url,"",p);
} // -->
</script>
<!-- end code provided by createblog.com -->

dont change anything on that..



for the links:

QUOTE
<a href="java script:P('site.htm',height,width)">text</a>


change the site.htm, and height and width, in pixels.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: