Code: Select all
;inside the ahk script
gui, add, edit, h0 w0
gui, font, s10
gui +Border -Caption +lastfound
gui, color, EBAE02
WinSet, TransColor, EBAE02
winsettitle, Test script
guiwidth := A_screenwidth / 1.5
guiheight := A_screenheight / 1.5
Gui, Add, ActiveX, x0 y0 w%guiwidth% h%guiheight% vfeaturedoc, Shell.Browser
featuredoc.navigate("file:///C:/Users/(name)/OneDrive/Desktop/Testhtml.html?value=1")
gui, show
return
Code: Select all
<!-- inside the html file -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=11">
</head>
</html>
<script>
var testbutton = document.createElement('Button');
var testtext = document.createTextNode(location.search);
testbutton.appendChild(testtext);
document.body.appendChild(testbutton);
</script>
Here is my question. Is it possible somehow to use html instead of javascript for this part. here's an example of what I want in the end
Code: Select all
if(value == 1){
<div style='width:100px;'></div>
}
else{
<div style='width:50px;'></div>
}
Also, if there is someplace else where people know about this subject. Please point me there so I can ask the people there about it.