|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
I have *.php file wich content is like this:
<...> <a href="#" OnClick="alert('a');">a</a> <...> I run this file in http://localhost/ and if i press "a" link i dont get the msg... If i rename it to *.htm and run again in http://localhost it doesn`t work either.... But if i drag&drop from C:/ or whatever in explorer *.htm works and i get the alert msg..... Whats the problem )-: |
|
#2
|
|||
|
|||
|
did u try adding "language=javascript" in the <a> tag ?
could be the page thinks it's using vbscript standard or sth else use msgbox instead of alert and no ; .. that's the vbscript equivalent gl |
|
#3
|
||||
|
||||
|
limnil - attach the file - it's probably an error in your code.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > JScript code not working in *.php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|