473,396 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1647
dev7060
636 Expert 512MB
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

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

Similar topics

0
by: Hans-Joachim Widmaier | last post by:
Hi, I have a class that reads most common files (text, images, tar archives, zip archives). I just read in the whole thing and decide then what to do with it - create a gtk.TextView, gdk.pixbuf,...
2
by: Chris | last post by:
Im hoping someone can help me understand why this works? Requirement: Navigate DOM through javascript to perform DHTML actions. Issue: GIANT html document, up to 4MB in size, thousands and...
4
by: DKode | last post by:
I have developed a custom server control that displays a login page that authenticates against AD. The server control works fine, but now I am trying to figure out the best way to output custom...
0
by: David Helgason | last post by:
I think those best practices threads are a treat to follow (might even consider archiving some of them in a sort of best-practices faq), so here's one more. In coding an game asset server I want...
4
by: planetthoughtful | last post by:
Hi All, Just wondering if anyone can tell me if it's possible to programatically save Access2003 code (ie code behind forms, as well as class modules) to external files? I'd like to use...
1
by: MaxWall | last post by:
Hi Everyone, I'm new to the forum and to the Actionscripting world. I need some help with a project I'm working on and would appreciate any guidance. I'm working on a flash app for CD-ROM...
4
by: Kanuk | last post by:
I know there has to be a way to do this I want to beable to store and input data from a txt file and then beable to load it and parce it into visual basic to be thrown into a 1,2,or 3 dimentinal...
0
TjFL
by: TjFL | last post by:
I have a form where specific external files are selected by the user depending on needs. Each item listed on the form has 4 Yes/No boxes next to it where they select what they want. The result will...
2
mageswar005
by: mageswar005 | last post by:
How can i open doc,xls,html,swf files directly using php (without asking open,save,close options)? Regards, M.Mageswaran
0
by: apromca | last post by:
Hello All,i am sending with embed image into html body using oracle it works fine into msoutlook but in other email service provider images shows as attachment i am using CID in html body how can i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.