Jump to content

Special Characters in window.open URL


mkohan

Recommended Posts

Hi

 

How could I solve the special characters on window.open URL?

 

I want to open a document file  'document #2.doc'  with onClick  :

 

<a href="#"  onClick="javascript:window.open('/documents/documnet #2.doc', '2', 'height=600, width=850,menubar=1,scrollbars=1,resizable=1');">

 

I get  "file not find"  error.

 

Thanks,

MK

 

Link to comment
https://forums.phpfreaks.com/topic/129455-special-characters-in-windowopen-url/
Share on other sites

I think you might need to rename your file 'document #2.doc' to 'document_#2.doc' and <a href> it to..

 

<a href="#"  onClick="javascript:window.open('/documents/documnet_#2.doc', '2', 'height=600, width=850,menubar=1,scrollbars=1,resizable=1');">

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.