OpenUrl called from a web link

OpenUrl called from a web link

Hi 

I have an HTML page which displays records from my database.
I want the user to be able to edit individual records by clicking an 'EDIT' link alongside each record.
I would like the form view to open as a popup/modal window above the HTML page. 
Once the edits are done I want the popup to disappear and the HTML to reload (updating the data).

To this end I am trying to display a web link which will trigger:
#Script:page.open(urlpopup)

I have a function which generates these weblinks for each record.

How do i escape the double quotes needed for the URL?  Eg, how do I make the link show up as:

https://creator.zoho.com/MYNAME/APPLICATION/ #Script:page.open(" https://creator.zoho.com/MYNAME/APPLICATION/link/record-edit/Links/44850000000302019/",popup)

My attempts so far to escape the quotes using the usual \ backslash produce URLs with %20 instead of the quote marks. 

Many thanks