SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    I Never Give Up roosevelt's Avatar
    Join Date
    May 2005
    1 Post(s)
    0 Thread(s)

    Invalid Argument Error in IE :(

    I am bit weak on javascript, so any help you provide will be greatly appreciated .

    Here's my function which basically opens up a new window:

    HTML Code:
    <script language="javascript" type="text/javascript">
    function fullScreenVideo()
    	var video = "rvideo.php?videoFile=" + arguments[0];
    	var w =,"Video Player","status=1,height=400,width=400,resizable=1");
    	if (!w) alert('Please allow popups')
    	return false; // cancel the link
    And here's my HTML portion which calls this function:

    HTML Code:
    <a href="javascript:void(null);" onclick="javascript:fullScreenVideo('myvideo.mpg');"><img src="watch_now.gif" alt='Watch Video' border='0' /></a>
    It works fine in Firefox but IE is the one with the problem. It gives me the line number and Char: 2 but still no help.

    The line it shows the error is on is: var w =,"Video Player","status=1,height=400,width=400,resizable=1");

    Thanks a bunch in advance.

    Edit: Sorry should have searched before posting. My Window Title has a space .

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Christchurch, New Zealand
    104 Post(s)
    4 Thread(s)
    Glad we could help
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts