Skip to main content

All Questions

Tagged with
0 votes
1 answer
39 views

Electron WebView CSS Border Radius

Does Electron's <webview> tag support having a border radius? If not, is there a reference to which styles are supported? HTML <body> <aside> </aside> <main> ...
Matthew Layton's user avatar
1 vote
0 answers
1k views

How to render content on top of Electron.js mainwindow page while avoiding webview or browserview

Let's say you start your electron desktop application like any other application: //main.js const {app, BrowserWindow, BrowserView, } = require('electron') function createWindow () { // Create the ...
Iulian's user avatar
  • 409
0 votes
1 answer
1k views

electron webview simulate mobile phone screen

I'm making an electron desktop app trying to simulate google device toolbar, if I use iframe I get the desired behaviour with web page filling the entire screen, (no horizontal scrollbar), but then I ...
Petar Simic's user avatar
0 votes
1 answer
1k views

Prevent default nested scrolling behavior with electron webview

Case: I have an electron app which loads a webpage inside a webview. The webview is inside a container which is itself scrollable. Current behavior: When scrolling the webview, if the I reach the ...
Praneet Rohida's user avatar
1 vote
1 answer
1k views

Zoom Function in a Webview with Electron

I'm trying to create a zoom in and a zoom out button for my webview in my Electron app. Currently, I did it like this but getZoomFactor always returns undefined. Is there another way of creating ...
oli venöl's user avatar
1 vote
0 answers
289 views

Pass javascript mouse events through webview (iframe) to another webview (iframe) underneath

I'm making an electron app that loads several web pages into one page. Think of this like a splash screen that shows several different widgets in one place. The user can choose which screens they ...
Isaac's user avatar
  • 127
1 vote
1 answer
474 views

Electron: Prevent <style> tags in DOM from loading

Is there a way to remove all styling from an Electron webview before the page is shown? So far, I can inject JS to remove all styling after the document is loaded: document.addEventListener("...
kelvin's user avatar
  • 383
3 votes
0 answers
1k views

Electron focus() not working in webview

Im trying to set the focus on an element in the webview after it loses his focus <webview src="http://www.example.com/" id="target-view" preload="js/hooker.js" autosize minwidth="100%" minheight="...
Seryoga's user avatar
  • 851
11 votes
2 answers
837 views

Change webview find on page result style using css?

In an Electron webview using findInPage, can you use css to change the result colors? In the above image, the current find result is highlighted in orange while additional results are highlighted ...
Matt Bierner's user avatar
  • 62.9k
0 votes
1 answer
1k views

Electron webview preload log DOM

I am using a webview in my index.html file in my Electron program. The webview has a preloader and I simply want to be able to manipulate the DOM of the webview (not index.html). I have this code in ...
Ian W's user avatar
  • 960
0 votes
0 answers
402 views

Erase/reset DOM and global variables with JavaScript

I'm writing an electron app, but it's a question about JavaScript/HTML5 in general. I want to load local content in a webview and then open iframes from particular remote resource inside it. ...
Maciej Kravchyk's user avatar
3 votes
1 answer
7k views

Programmatically Changing the Contents of a Webview in Electron

So in my electron app I have a main page with a sidebar (containing some links) and then a webview taking up most of the page. I have some pages in separate .html files that I would like to be able to ...
AlexJHayward's user avatar