|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
javascript
I'm trying to make a javascript so i can send an email link to people. I would like the page to open on their browser with no tool bar, status bar or and other stuff, and be a certian size. I know this is possible. Can someone please show me how. I figured out the size end but how do i get rid of everything else?
this is where i'm at: <script language="JavaScript"> <!-- window.resizeTo(337,345) --> </script> Thanks mrmk |
|
#2
|
||||
|
||||
|
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. I'm looking for new clients. |
|
#3
|
|||
|
|||
|
Quote:
Thanks, but im unsure where to put this. "window.open" How does it fit into the java script? <script language="JavaScript"> <!-- window.open(scroolbar=no, toolbar=no), ??? This is not working window.resizeTo(337,345) --> </script> |
|
#4
|
||||
|
||||
|
If you use Google some more you'll find an example here:
http://www.pageresource.com/jscript/jwinopen.htm So you want code like this: Code:
<script language="JavaScript">
<!--
function openpopup() {
window.open('page.html','mywindow','width=337,height=345,toolbar=no,
location=yes,directories=yes,status=yes,menubar=yes,scrollbars=no,copyhistory=yes,
resizable=yes');
}
-->
</script>
|
|
#5
|
||||
|
||||
|
You didn't specify the URL and WindowName arguments.
http://www.mozilla.org/docs/dom/dom...ndow_ref76.html Code:
<script type="text/javascript">
<!--
var newWindow=window.open('http://www.example.com/','newWindow', 'scrollbars=no,toolbar=no,resizable=yes,location=yes,status=yes');
newWindow.resizeTo(337,345)
// -->
</script>
Last edited by Kravvitz : January 21st, 2005 at 01:11 PM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Web Design Help > javascript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|