dzhax Posted April 14, 2013 Share Posted April 14, 2013 I'm trying to develop a simple chrome app that will launch a specific webpage in a new tab on chrome. I ran through the tutorial on the developer.chrome.com but it makes a new standalone window it doesn't load the page in a tab.If you don't understand what I am talking about check out the code anywhere app on the google chrome app store. That's basically what I am after. It adds the button to the start page of chrome and when you click on it the page loads the code anywhere website. background.js chrome.app.runtime.onLaunched.addListener(function() { chrome.app.window.create('window.html', {});}); window.html <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><meta http-equiv="refresh" content="0;URL='http://www.watchtbr.com/'" /><title>WatchTBR.com</title></head> <body> </body> </html> Link to comment Share on other sites More sharing options...
dzhax Posted April 15, 2013 Author Share Posted April 15, 2013 got it to work I didn't need a js function at all. Dove into the manifest.json documentation some more and found I can do what i was trying to do in there. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now