Javascript, Base, Form, What are the code to obtain DataSource information?

Hi,

What is the method with javascript to get the DataSource for a database form ?
I use BASIC and want to convert it to javascript. In BASIC the code are:

DIM oCurrentDbInfo As Object
oCurrentDbInfo = thisComponent.Parent.DataSource

After that I obtain some valuable informations: oCurrentDbInfo.Name , oCurrentDbInfo.URL , …

What is the equivalent in JS ?

Thank you