By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,696 Members | 1,422 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,696 IT Pros & Developers. It's quick & easy.

How to make it small window

P: 93
Hi

How should I make this window small just to show only that text like in the box pop up? It just want to show deleted info and ok button only. But currently the window is too big.

[HTML]
<?php
session_start();


if(!isset($_SESSION['user'])) {
header('Location: /MB2Login.html');
die();
}
?>
<?php

include_once('../ez_sql.php');
$noteID = (int) $_GET['noteID'];
$db->query("DELETE FROM MovieNotes where userID = " . $_SESSION['user']->userID ." and noteID = $noteID ");
echo ("Movie Notes Deleted..");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Confirm Delete Movie Notes</title>
<link rel="stylesheet" href="moviebrowser2.css" type="text/css" title="Default" media="screen"/>
<style type="text/css">
.style2 {color: #FFFFCC}

</style>

</head>
<body>
<table>
<tr>
<td><input type=button value="OK" onClick="history.go(-2)"></td>
</tr>
</table>
</body>
</html>
[/HTML]
Feb 5 '08 #1
Share this Question
Share on Google+
9 Replies


drhowarddrfine
Expert 5K+
P: 7,435
What do you mean by "the window"?
Feb 5 '08 #2

P: 93
nma
What do you mean by "the window"?
currently it display the window but the size too big just to show the word and the ok button only. can I fix the display window size when this file is being call?
At the moment it display a window with a resizable one.

What i mean is this file when it is called by the previous file show a window.
Is there any codes that i need to put here in this file somewhere so that it display according to the size we fix it.

The display is only like this
"Movie Notes Deleted..
ok(button)"

Thank you

nma
Feb 5 '08 #3

Minion
Expert 100+
P: 108
I don't have the code handy off hand, but you may check in the Javascript section of the forum to see if it's there. Regardless you should be able to utilize javascripts to determine screen size then adjust the window size accordingly. Be warned though this will require several work arounds for different platforms and browsers and may be blocked by some ant-spam software.

Hope this helps and gets you pointed in the right direction.

- Minion -
Feb 6 '08 #4

drhowarddrfine
Expert 5K+
P: 7,435
I still don't know what you mean by 'window'. Are you talking of the <td> containing the buttons, some other element such as a <div> containing the buttons, the browser canvas, a popup window, the window on your screen that contains the browser?

If this pertains to javascript then you have the wrong forum.
Feb 6 '08 #5

Death Slaught
100+
P: 1,137
I still don't know what you mean by 'window'. Are you talking of the <td> containing the buttons, some other element such as a <div> containing the buttons, the browser canvas, a popup window, the window on your screen that contains the browser?

If this pertains to javascript then you have the wrong forum.
He's talking about the browser window. I believe he wants it to show up in a/or something like a pop up window, because all he wants displayed is the text and the button.

^_^ Thanks, Death
Feb 6 '08 #6

Death Slaught
100+
P: 1,137
Hi nma, as drhowarddrfine and Minion pointed out, your question isn't HTML or CSS related, so please ask it in our JavaScript forum. Also you could put it in a frame if you want it on the same page.

^_^ Thank you, Death
Feb 6 '08 #7

Death Slaught
100+
P: 1,137
Sorry, accidently double posted. Please delete.

^_^ Thanks, Death
Feb 6 '08 #8

P: 93
nma
Hi All

Thanks..

I'll send to the Javascripts forum.

nma
Feb 7 '08 #9

acoder
Expert Mod 15k+
P: 16,027
Are you using window.open() to open the new window? You can specify the width and height in the third parameter. See link.
Feb 8 '08 #10

Post your reply

Sign in to post your reply or Sign up for a free account.