I have an extension in which when I click on the icon, a popup opens. The user will not press any buttons within the extension page, the page should by default be the Google page due to the script mentioned.
The code for the pop up (in HTML) is:
<html>
<head>
<style type="text/css">
body {width:780; height:580;}
</style>
</head>
<script>
var value_raw2 = "https://www.google.com/";
document.getElementById("MyFrame").src = value_raw2 + ReturnURL();
</script>
<body>
<iframe id="MyFrame" src = "" width="100%" height="100%" frameborder="0">
</iframe>
</body>
</html>
Basically, I want the pop-up to open Google.com and not a blank page by implementing the script. However, it seems to be ignoring the script. This is a basic case which I will be refining later to dynamically change URL to anything at all at random.