Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8459931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:27:55+00:00 2026-06-10T13:27:55+00:00

I developed manifest version 1 of a chrome extension which takes input from user

  • 0

I developed manifest version 1 of a chrome extension which takes input from user and open a new window

But when I upgraded to manifest version 2 the redirection to http://www.someUrl.com in a new tab is stopped.

Please tell me what changes I have to do according to version 2 to make it run.

popup.html

<body onload="document.form.query.focus()";>

<div id="searchwrapper">

<script>
function send_url() {   
    var url = "www.someurl.com?query="+form.query.value;
    window.open(url, '_blank'); 
    return false;
}
</script>
<form name="form" id="search_form" action="popup.html" method="POST">
<input type="text" class="searchbox" name="query" value=""/>
<input type="hidden" name="search" value="1">
<input type="image" src="search.png" onClick="send_url()" value=""/>
</form>
</div>

</body>

and my manifest.json

{
"manifest_version": 2,
"name": "Search",
"version": "2.0",
"description": "This is a chrome extension for search",
"browser_action": {
  "default_icon": "icon.png",
  "default_popup": "popup.html"
},
"permissions": ["www.someUrl.com"]
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:27:57+00:00Added an answer on June 10, 2026 at 1:27 pm

    No inline scripts is allowed in Manifest2.
    Manifest 2 also disallow

    onClick="send_url()"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While attempting to port the extension from manifest version 1 to version 2, this
I currently looking to build a Google Chrome Extension that fetches bookmarks from the
I have developed an app using Phone Gap version 0.9.3 ... When I open
I developed a custom file manager for tinymce. But even if adding image to
I developed one Simple app, which contains one textview.and my problem is that I
I am attempting to set up a chrome extension similar to http://code.google.com/chrome/extensions/trunk/samples.html#webrequest except that
I developed application on 1.6.in manifest i gave: <uses-sdk android:minSdkVersion=3 android:targetSdkVersion=4/>. When I run
I have developed an App that target version is 4 (Android 1.6) upto 7
I have developed my own app in android version 8(2.2) and published it in
I have developed an Android application using Eclipse which works perfectly on the Android

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.