How can I access BrowserView objects in html or css?

75
January 01, 2020, at 8:20 PM

I'm currently working on an ElectronJS app where I create a browserWindow object using:

let window = new BrowserWindow({ width: 800, height: 600 });

I then load the contents on index.html:

window.loadURL(url.format({
    pathname: path.join(__dirname, 'index.html'),
    protocol: 'file:',
    slashes: true
}));

Finally, I add a browserView object to the page:

let view = new BrowserView();
window.addBrowserView(view);
view.setBounds({ x: 0, y: 0, width: 400, height: 200 });
view.webContents.loadURL('https://www.google.com');

Everything works fine but I am unable to find any information on this window in my dev tools. I would like to be able to reference it in my HTML and CSS files to attach buttons and style it. Is this possible?

READ ALSO
jquery function to select a button

jquery function to select a button

How to select the clicked button element in function below with jquery?

93
Dynamically adding media queries to the page and overriding the styles from generated html from Application Side

Dynamically adding media queries to the page and overriding the styles from generated html from Application Side

I have code where i dynamically add custom css to my html on the application side like this:

75
Setting src for image inside an li selected using .eq?

Setting src for image inside an li selected using .eq?

I am trying to set the src of of the first image in the first li to the combination of two variables each containing a stringI tried using:

78
How to grab the values from a slider with jquery

How to grab the values from a slider with jquery

I have a slider that I grabbed from Codepenio here is the link to the slider I am using

94