Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-29-2006, 12:42 AM   PM User | #1
sincityharley
New to the CF scene

 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
sincityharley is an unknown quantity at this point
Help Coding Please

I have got this javascript working great as far as it opening in a new window. I am trying to get it to open in a specific size though almost like a popup. Can anyone help?


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
var s = selObj.options[selObj.selectedIndex].value;
window.open(s);
if (restore) selObj.selectedIndex=0;
}
//-->
</script>


</head>

<body>
<table width="100%" border="3">
<tr>
<td><form name="form1">
<select name="Internal Messaging" onChange="MM_jumpMenu('parent',this,1)">
<option>Internal Messaging</option>
<option value="URL">TEST
Internal Alert</option>
<option value="URL">TEST
Internal Announcement</option>
<option value="URL">TEST
Internal Email</option>
</select>
</form></td>
sincityharley is offline   Reply With Quote
Old 12-29-2006, 01:20 AM   PM User | #2
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
Here is a link that might be useful. Look at the examples.

http://www.javascript-coder.com/wind...dow-open.phtml

david_kw
david_kw is offline   Reply With Quote
Old 12-29-2006, 11:06 PM   PM User | #3
mrizwan
New to the CF scene

 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
mrizwan is an unknown quantity at this point
A simple syntax for use is

myRef = window.open(''+self.location,'mywin', 'left=20, top=20, width=500, height=500, toolbar=1, resizable=0');

for more details see http://www.javascripter.net/faq/openinga.htm
mrizwan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:38 PM.


Advertisement
Log in to turn off these ads.