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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup window problem JAVASCRIPT

Status
Not open for further replies.

un1k

Technical User
Mar 8, 2004
30
CA
Hi guys, I need your help I'm using a little javascript function to open a new window on a click that's in my HEAD :

Code:
<SCRIPT TYPE="text/javascript">
<!--
}
function MyOpenWindow_f() {
  var MyURL = 'player_un1k.htm';
  var MyWindowName = 'sized';
  var MyWindowOptions ='width=640,height=300'
  window.open(MyURL, MyWindowName, MyWindowOptions);
}
// -->
</SCRIPT>
<!-- End Preload Script -->

My problem is... it ain't doing nothing saying : Error on page when I click my link" at the bottom of the status bar. But I did use that code before and it worked, any ideas?

Thanks,
SB.
 
After removing '}', it works fine for me
Code:
<SCRIPT TYPE="text/javascript">
<!--
[COLOR=red]}[/color]
function MyOpenWindow_f() {
//...
 
Geez what a silly mistake... thanks a bunch!

SB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top