Simple a href='filename.html'> help

27 views
Skip to first unread message

Nathan Fuller

unread,
Feb 4, 2014, 9:45:16 PM2/4/14
to chromium-...@chromium.org
I am trying to have a link in a window open a different html file. currently using the following code:
<div style="position: absolute; top: 230px; width: 600px; left: 250px; height: 120px"> <h2><a href='cgoogle.html'>Click Here</a></h2></div>
However the link does nothing when I click it. Any help would be greatly appreciated as I am new to writing code for Chrome extensions/apps.

Nathan 

PhistucK

unread,
Feb 5, 2014, 1:52:02 AM2/5/14
to Nathan Fuller, Chromium-extensions
Are you trying that within a browser/page action popup?


PhistucK


--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/ee7d1fcf-1896-4f83-9c53-976ccbe66e77%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/groups/opt_out.

Nathan Fuller

unread,
Feb 5, 2014, 2:39:07 AM2/5/14
to chromium-...@chromium.org, Nathan Fuller
Yes. I have the basic main.js:

chrome.app.runtime.onLaunched.addListener(function() {
  chrome.app.window.create('index.html', {
    width: 1366,
    height: 768,
  });

});

I want to click a link in index.html, and have the window now display cgoogle.html. How do I make this happen? I apologize for what feels like a rather rudimentary question.
Nathan 

Reply all
Reply to author
Forward
0 new messages