-
Can anyone tell me how to spec the size of the new window.
I can get a button to upen a url in a new window, but i want it fixed at 320 x 240 pxls
I tried copying code from dreamweaver but had no joy
thanks
-
-
add this script to the head of your html page:
<script language="JavaScript">
< !--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
then the button that opens the window has get URL, and put this in the url box:
javascript:MM_openBrWindow('you url','name,'width=320,height=400')
hope it helps!
-
script for the header of the html page:
<script language="JavaScript">
< !--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
-
I'm sorry, i thing the java script i keep posting is becoming active on the page and not showing. here it is without complete tags! just add them in again when you paste it into your page!
(<)script language="JavaScript">
< !--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script(>)-remove those brackets!
-
thanks for all your help - i've fixed my problems
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|