Dark Dragon
08-31-2003, 08:00 PM
Okay..here is one of the difficulties I face...I have some images I wish to have open in a separate window however the window I want it to appear in will already have its size predetermined..here is the window resize code I am gonna use:
<html>
<head>
<script type="text/javascript">
function openwindow()
{
window.open("http://www.w3schools.com","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=400, height=400")
}
</script>
</head>
<body>
<form>
<input type="button"
value="Open Window"
onclick="openwindow()">
</form>
</body>
</html>
I left the original link as it is because I am unsure as to what I put in that area...do I put a img src tag where the URL is or what? I tried using DreamWeaver tools but I haven't found what I needed. Thanks
<html>
<head>
<script type="text/javascript">
function openwindow()
{
window.open("http://www.w3schools.com","my_new_window","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=400, height=400")
}
</script>
</head>
<body>
<form>
<input type="button"
value="Open Window"
onclick="openwindow()">
</form>
</body>
</html>
I left the original link as it is because I am unsure as to what I put in that area...do I put a img src tag where the URL is or what? I tried using DreamWeaver tools but I haven't found what I needed. Thanks