|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have no idea why this code is not working. It works perfect in a different page but when I tried to redo the same action in another page it won't work. Does anyone know why?
Here it goes: <script language="javascript"> function NewWindow() { docWindow = window.open("test.asp", "Supporting Documents Form - 0.1", "width=100, height=100, left=0, top=0, menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=yes"); } </script> And here is my button: <input type="button" name="btnDefine_1" value="Documents" onClick="NewWindow();"> The page doesn't go anywhere and it shows at the bottom that there's an error. I also checked if Javascript is enabled in my browser and it is. I only need this to work in IE. Thanks! |
|
#2
|
||||
|
||||
|
double click the yellow error indicator - what is the full error message?
|
|
#3
|
|||
|
|||
|
Quote:
Line: 6 Char: 2 Error: Invalid argument. Code:0 Url:.../test_form.asp Here's the code line by line: <html> <head> <script type="text/javascript" language="javascript"> function NewWindow() { docWindow = window.open('supportingdocs.asp', 'Supporting Documents Form - 0.1', 'width=100, height=100, left=0, top=0, menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=yes'); } </script> |
|
#4
|
|||
|
|||
|
Problem sovled. For those of you with the same problem, apparently when I copied the code from one page to another, there was a hidden character in the black space. I rewrote the exact same code a few lines before and it worked.
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > javascript not working |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|