468,167 Members | 1,932 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,167 developers. It's quick & easy.

How do I add a custom div HTML with external CSS and JS files in the body using Chrom

I am trying to append a custom HTML div in the currently active tab body tag.

In chrome extension have created one HTML popup file.

In this extension, I won't set some options in popup.html file. then after clicking the append button, then append customize HTML in the active tab body tag.

The main problem is I want to add external CSS and JS files in custom HTML.
Dec 16 '20 #1
1 1312
dev7060
413 Expert 256MB
I am trying to append a custom HTML div in the currently active tab body tag.

In chrome extension have created one HTML popup file.

In this extension, I won't set some options in popup.html file. then after clicking the append button, then append customize HTML in the active tab body tag.

The main problem is I want to add external CSS and JS files in custom HTML.
How is the question related to java? Servlets?

External CSS and JS can be included as:
Expand|Select|Wrap|Line Numbers
  1. <link rel="stylesheet" href="yourstylesheet.css">
Expand|Select|Wrap|Line Numbers
  1. <script src="yourscript.js"></script>
Dec 16 '20 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Hans-Joachim Widmaier | last post: by
2 posts views Thread by Chris | last post: by
1 post views Thread by gcdp | last post: by
reply views Thread by kamranasdasdas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.