DuckDuckGo Search Box

buckeye buckeye
Created: 4 years and 11 months ago
I want to to add the Duckduckgo search box to a web site using the writeup at I can make it work but I need the search to open in a new tab. I tried jamming target="_blank" various places but didn't work. can anyone help me with that code? I don't want a bunch of javascript or css please just a quick change to the code as it is on the searchbox bag. thanks

This forum has been archived

Thank you all for the many comments, questions and suggestions. Particular thanks go to user x.15a2 for constantly monitoring, replying and helping so many users here. To continue these discussions, please head over to the DuckDuckGo subreddit.

Since the search box is a separate page loaded in an iframe, you can only edit the search box code through the parameters available.

For a simple DuckDuckGo search box that loads in a new tab, try this code:
<form target="_blank" method="get" action="">
<input name="q" type="text"/>
<input value="YOURWEBSITE.COM" name="sites" type="hidden"/>
<input value="Search" type="submit">
posted by david_mascio Community Leader4 years and 11 months ago Link
perfect!!!! TNX
posted by buckeye 4 years and 11 months ago Link