I've been looking around all over the web trying to get an options page working.. It's really driving me crazy. I finally found a Chrome extension forum and here I am. I have this as the options.html page:
<html>
<head>
<title>Feed Options</title>
<script type="text/javascript" src="options.js"></script>
</head>
<body onload="loadOptions()">
<h1>Select your Feed.</h1>
<select id="feed">
<option value="theoatmeal">TheOatmeal</option>
<option value="twitter">Twitter</option>
</select>
<br />
<button onclick="saveOptions()">Save</button>
<br />
<button onclick="eraseOptions()">Restore default</button>
</body>
</html>
Sorry I forgot the tag for putting that in a box.. It's fairly short so no harm should be done.
Anyways, I need help with options.js. I'm a newbie to JavaScript, but this shouldn't be hard.
Whenever you go to the options page and select 'Twitter' for example, I need it to display "popup2.html" instead of the default "popup.html"..
-Jared


LinkBack URL
About LinkBacks



Reply With Quote