Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window size script.

Status
Not open for further replies.

Ivan1

Programmer
Jun 18, 2001
113
US
I have an HTML page that I would like to link to another page that contains a FLASH movie. When I press a button on my main page I would like the second (flash) page open in a specified non-resizeable window with no toolbars.
Any feedback is much appreciated.
 
Try this:

for a link:

Code:
<a href=&quot;javascript:openWindow('flashpage.html');&quot;>linkname</a>

<script language=&quot;javascript&quot;>
		function openWindow(url)
		{
			window.open(url, 'windowname', 'top=200,left=100,height=250,width=274');
			
		}
</script>

for a button:

Code:
<form method=&quot;post&quot; action=&quot;javascript:openWindow('flashpage.html');&quot;>
<INPUT TYPE=&quot;submit&quot; name=&quot;buttonname&quot; value=&quot;buttonvalue&quot;>
</form>

<script language=&quot;javascript&quot;>
		function openWindow(url)
		{
			window.open(url, 'windowname', 'top=200,left=100,height=250,width=274');
			
		}
</script>

Hope this helps,
Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top